Cannot Update Anything
I am fairly new to Ubuntu and i have Xubuntu installed on my computer and I try to start my Update Manager and I get an error message that states
"E: Could not open file /var/lib/
I try going through the terminal and updating that way but i cannot do it get the same error message. It was working fine before. I would really appreciate any help that anyone can give me. Thanks.
Dimitrios
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2008-04-11
- Last reply:
- 2008-04-14
| trylik (marek-nasionka) said : | #1 |
try this
cd /var/cache/
sudo rm -rf *
mkdir partial
sudo apt-get update (perhaps 2x)
sudo apt-get upgrade
| Bhavani Shankar (bhavi) said : | #2 |
Hmm Venom
please check your /var/lib/dpkg directory. There should be a status-old file. If so please rename the file to status and try to start your package manager.
If its not there...
here are a nice script which would rebuild a debian package database
http://
Copy the whole thing to a file/empty document and save it as debrebuild.sh
and then run the script
give the below command in a terminal (Applications > Accessories > Terminal)
sh debrebuild.sh
Hope it helps
Bhavani Shankar.
| Venom23 (grkvenom23) said : | #3 |
Hey guys I tried to do it both of your ways but everytime i went to do create a file of directory a message would say that permission is denied...i tried to change it but i'm not sure if i was doing it right, i was typing:
chmod 700 (then whatever directory or file i was trying to change)
also bhavani i checked that directory you told me to and when i looked i saw a diversions-old file and a statoverride-old file where those either of the ones you were talking about?
Dimitrios Panagiotaros
| Bhavani Shankar (bhavi) said : | #4 |
not that one mate....
Ok let me bring in some more detail:
Install gedit from the ubuntu repositories... You can do it via synaptic package manager.....
Or give the following command in a terminal
sudo apt-get install gedit
to install gedit
Open gedit
(type gedit in a terminal to open it)
http://
Copy the whole thing and save the file in your home folder under the name debrebuild.sh
and then run the script
give the below command in a terminal (Applications > Accessories > Terminal)
sh debrebuild.sh
Hope it helps
Bhavani Shankar.
| Venom23 (grkvenom23) said : | #5 |
can't do it through synaptic package manager or the terminal i get this error message:
E: Could not open file /var/lib/
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.
| Bhavani Shankar (bhavi) said : | #6 |
sudo dpkg-reconfigure -phigh apt
This should reconfigure apt and set up any thing that was deleted accidentally...
Have a try and keep us informed
Regards
Bhavani Shankar.
Can you help with this problem?
Provide an answer of your own, or ask Venom23 for more information if necessary.

