Failed to upgrade (python-apt)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-apt
I did 'do-release-
Preparing to replace python-apt 0.6.20ubuntu16 (using .../python-
dpkg-query: parse error, in file `/var/lib/
`triggers-pendi' is not allowed for third (status) word in `status' field
dpkg-query: parse error, in file `/var/lib/
`triggers-pendi' is not allowed for third (status) word in `status' field
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
pkg.
File "/usr/bin/
raise PyCentralError, "package has no field Python-Version"
__main_
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg-query: parse error, in file `/var/lib/
`triggers-pendi' is not allowed for third (status) word in `status' field
dpkg-query: parse error, in file `/var/lib/
`triggers-pendi' is not allowed for third (status) word in `status' field
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
pkg.
File "/usr/bin/
raise PyCentralError, "package has no field Python-Version"
__main_
dpkg: error processing /var/cache/
subprocess new pre-removal script returned error exit status 1
dpkg-query: parse error, in file `/var/lib/
`triggers-pendi' is not allowed for third (status) word in `status' field
dpkg-query: parse error, in file `/var/lib/
`triggers-pendi' is not allowed for third (status) word in `status' field
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
pkg.
File "/usr/bin/
raise PyCentralError, "package has no field Python-Version"
__main_
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Confirming, saw this on laptop and now also on my desktop computer when upgrading from Feisty to Gutsy: The laptop was i386 and this one is amd64. From term.log:
Preparing to replace lsb-release 3.1-22ubuntu3 (using .../lsb- release_ 3.1-23. 1ubuntu3_ all.deb) ... apt_0.7. 3.1ubuntu2_ amd64.deb) ... dpkg/updates/ 0013' lähellä riviä 2 paketti `libc6': pycentral" , line 1394, in <module> pycentral" , line 1388, in main run(global_ options) pycentral" , line 955, in run read_version_ info() pycentral" , line 542, in read_version_info _.PyCentralErro r: package has no field Python-Version apt/archives/ python- apt_0.7. 3.1ubuntu2_ amd64.deb (--unpack): pycentral" , line 879, in run essa: config_ 0.22-1_ amd64.deb) ... 0-dev_2. 14.1-1ubuntu1_ amd64.deb) ... 0-0_2.14. 1-1ubuntu1_ amd64.deb) ...
Unpacking replacement lsb-release ...
Preparing to replace python-apt 0.6.20ubuntu16 (using .../python-
dpkg-query: jäsennysvirhe, tiedostossa `/var/lib/
`triggers-pendi' ei ole sallittu kolmas (tila) sana `status' -kentässä:lle
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
pkg.
File "/usr/bin/
raise PyCentralError, "package has no field Python-Version"
__main_
dpkg: varoitus - old pre-removal script palautti virhetilakoodin 1
dpkg - trying script from the new package instead ...
ä 2 paketti `libc6':
dpkg: error processing /var/cache/
aliprosessi new pre-removal script palautti virhetilakoodin 1
File "/usr/bin/
dpkg: virhe jälkipuhdistuks
aliprosessi post-installation script palautti virhetilakoodin 1
Preparing to replace pkg-config 0.21-1build1 (using .../pkg-
eb (--unpack):
Unpacking replacement pkg-config ...
ä 2 paketti `libc6':
Preparing to replace libglib2.0-dev 2.12.11-0ubuntu1 (using .../libglib2.
Unpacking replacement libglib2.0-dev ...
Preparing to replace libglib2.0-0 2.12.11-0ubuntu1 (using .../libglib2.
Unpacking replacement libglib2.0-0 ...
Sorry for Finnish in there, but basically it's identical to original reporter's error message (although only once). On both machines, I used Update Manager for the upgrade, and it popped up a closable window with the error message while continuing to install on the background. Locale is fi_FI.UTF-8.
Because of this (?) error windows also pop about dependency problem with update-manager, update- manager- core, update-notifier, gdebi-core, gdebi, unattended- upgrades, python- software- properties, software- properties- gtk, gnome-app-install, language-selector, ubuntu-desktop, command-not-found, python- launchpad- bugs, python-apport, apport, apport-gtk, apturl, ubufox later on during the installation. Also those may be closed separately and the installation continues.
Finally a error pops that "Updates could not be installed" (in Finnish), consider using dpkg --configure -a etc. It also recommends filing a bug against update-manager, but since it only points to installArchives() I think python-apt is a proper place for this bug.