Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I'm new to the Linux world but decided to try Ubuntu and so far I like it.

But after installing the ATI driver a weird thing occured. Whenever I turn on my laptop, it starts normally up to the part where I can choose the OS I'd like to boot (with purple background) and when I hit Enter to boot the Ubuntu, it just beeps and stays black, nothing happens.

I tried to find a solution but got nothing so far.

When I boot in recovery mode (root) and try to purge the driver, 3 lines appear :

W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable  to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.

It's like that will all commands I try.

I'd really like to use Ubuntu and maybe at some point I'll remove Windows entirely but for now it's just unusable.

I have a request, if someone replies, please try to explain everything step by step since I'm new to this.

P.S. I am really sorry if there is already a post answering to this.

share|improve this question

marked as duplicate by karel, Florian Diesch, Aditya, Eric Carvalho, blade19899 Dec 26 '13 at 20:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

Install the xserver-xorg-video-intel and one of the fglrx packages from this PPA should work.

for more information about your problem check this

share|improve this answer
    
how do you know if him has hybrid intel/ati? –  user091230912 Dec 25 '13 at 12:42

Information about packages are stored in /var/lib/dpkg/ folder.

This folder is is needed for any process that install or remove packages. In your case, this folder is being modified or being used by other process.

It is the reason for it is having a lock file.

So you need to identify that process and stop it to continue purging the driver package.

To identify the process based on file system, you can use the command fuser

sudo fuser [OPTION] [FILE]

And kill the process you can use -k option with it.

sudo fuser -k /var/lib/dpkg/lock

So because you need to stop that process somehow that cammand is enough. If you need to ask before to kill you can use -i option.

If you need to show the process before kill you can use -v option.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.