Comment 5 for bug 422825

Revision history for this message
actionparsnip (andrew-woodhead666) wrote : Re: Upgrading of apturl to 0.4.0ubuntu2 fails

andy@fileserver:/$ file /usr/lib/python2.6/dist-packages/AptUrl/gtk
/usr/lib/python2.6/dist-packages/AptUrl/gtk: directory
andy@fileserver:/$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  apturl
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
25 not fully installed or removed.
Need to get 0B/12.3kB of archives.
After this operation, 102kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 107558 files and directories currently installed.)
Preparing to replace apturl 0.3.6ubuntu1 (using .../apturl_0.4.0ubuntu2_all.deb) ...
Unpacking replacement apturl ...
Replaced by files in installed package apturl-common ...
dpkg: error processing /var/cache/apt/archives/apturl_0.4.0ubuntu2_all.deb (--unpack):
 error creating directory `./usr/lib/python2.6/dist-packages/AptUrl/gtk': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/apturl_0.4.0ubuntu2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

andy@fileserver:/$ ls -l /usr/lib/python2.6/dist-packages/AptUrl/gtk
total 16
lrwxrwxrwx 1 root root 39 2009-09-01 21:45 GtkUI.py -> /usr/share/pyshared/AptUrl/gtk/GtkUI.py
-rw-r--r-- 1 root root 8245 2009-09-01 21:45 GtkUI.pyc
lrwxrwxrwx 1 root root 42 2009-09-01 21:45 __init__.py -> /usr/share/pyshared/AptUrl/gtk/__init__.py
-rw-r--r-- 1 root root 142 2009-09-01 21:45 __init__.pyc

andy@fileserver:/$ uname -a
Linux fileserver 2.6.31-9-generic #29-Ubuntu SMP Sun Aug 30 17:39:26 UTC 2009 x86_64 GNU/Linux

andy@fileserver:/$ apt-cache policy apturl
apturl:
  Installed: 0.3.6ubuntu1
  Candidate: 0.4.0ubuntu2
  Version table:
     0.4.0ubuntu2 0
        500 http://gb.archive.ubuntu.com karmic/main Packages
 *** 0.3.6ubuntu1 0
        100 /var/lib/dpkg/status