[intrepid] apt-get /var/lib/apt and /var/lib/dpkg missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I am running Kubuntu.
Since Oct 1 I have upgraded to:
cat /etc/issue
Ubuntu intrepid (development branch)
I issue an apt-get update && apt-get dist-upgrade about twice a day. Earlier today (Oct 14, 2008) I ran the update at work, then shutdown my laptop. The shutdown hung so I had to hold the power button to kill it. At home I started the laptop and tried to do another apt-get update. However I get the following error:
E: Could not open lock file /var/lib/
E: Unable to lock the list directory
ls /var/lib
aptitude dictionaries-common gems initramfs-tools update-notifier urandom
I then forced a fsck check by running 'touch /forcefsck' and rebooted. (Note: My shutdown hung again and I had to hold the power button down again). The fsck didn't report anything bad with my disk.
Is my disk going bad, or did my most recent update wipe out my /var/lib/apt & dpkg directories? Or is this god punishing me for running too many updates a day :)
By the way running 'apt-cache policy packagename' as suggested in the Report a bug guideline results in:
E: Could no open file /var/lib/
I recreated the missing dir/file by running: apt/lists/ lists apt/lists/ partial dpkg/status dpkg/updates dpkg/available
mkdir /var/lib/apt
mkdir /var/lib/apt/lists
mkdir /var/lib/dpkg
touch /var/lib/
mkdir /var/lib/
touch /var/lib/
mkdir /var/lib/
touch /var/lib/
It seems to be working now. I still don't show any errors with /dev/sda. Hope its not the ext3 kernel problem that lost my /var/lib directories.
Kernel: 2.6.27-7-generic x86_64 errors= remount- ro 0 0
mtab: /dev/sda1 / ext3 rw,relatime,
crypttab: home /dev/sda3 none luks,tries=5
crypttab: cryptoswap /dev/sda5 /dev/urandom swap
dmesg "strange message": CE: hpet increasing min_delta_ns to 15000 nsec