I am no longer using the installation on which I had this problem. This
situation might not be possible to recreate in a test tube. It may not
be worth bothering on this bug...
...And, I don't believe there's actually a problem with dpkg, here; I
think this is an issue with the underlying filesystem, as stated above.
** Description changed:
This is really strange.
I think the problem came about because my computer locked up (perhaps due to
another bug) while dpkg was chugging away. Anyhow, I'll just show an example,
as I'm not sure how to describe the problem:
-------------------------------------------------------------------------------------
[EMAIL PROTECTED]:~$ sudo apt-get install gtk2-engines-murrine
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
gtk2-engines-murrine
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 36.7kB of archives.
After unpacking 135kB of additional disk space will be used.
Get: 1 http://malteo.homelinux.net edgy-malteo/extras gtk2-engines-murrine
0.40.1-1 [36.7kB]
Fetched 36.7kB in 11s (3331B/s)
dpkg: unable to create `/var/lib/dpkg/updates/tmp.i': Permission denied
E: Sub-process /usr/bin/dpkg returned an error code (2)
[EMAIL PROTECTED]:~$ ls -l /var/lib/dpkg/updates/
total 0
?--------- ? ? ? ? ? /var/lib/dpkg/updates/tmp.i
[EMAIL PROTECTED]:~$ sudo rm /var/lib/dpkg/updates/tmp.i
rm: cannot remove `/var/lib/dpkg/updates/tmp.i': Permission denied
[EMAIL PROTECTED]:~$ sudo rm -R /var/lib/dpkg/updates
rm: cannot lstat `/var/lib/dpkg/updates/tmp.i': Permission denied
[EMAIL PROTECTED]:~$ sudo mv /var/lib/dpkg/updates /var/lib/dpkg/updates
/var/lib/dpkg/updates.bak
mv: target `/var/lib/dpkg/updates.bak' is not a directory
[EMAIL PROTECTED]:~$ ls /var/lib/dpkg/
alternatives available-old diversions info methods statoverride
status updates
available cmethopt diversions-old lock parts statoverride-old
status-old
[EMAIL PROTECTED]:~$
-------------------------------------------------------------------------------------
This seems like it must be an issue with the underlying filesystem. I'm
using a reiserfs filesystem. Here's the relevant portion of /etc/fstab:
-------------------------------------------------------------------------------------
# /dev/hda1 -- converted during upgrade to edgy
UUID=cb81ff2f-e198-42bb-8658-2c77f5ac8eda / reiserfs notail 0 1
-------------------------------------------------------------------------------------
-
- Any suggestion for how to get my system back to a usable state would be
- appreciated. :)
--
dpkg cannot create file /var/lib/dpkg/updates/tmp.i
https://launchpad.net/bugs/78238
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs