desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #102080
[Bug 1424224] [NEW] fail to update if /usr/bin/python points to python3 instead of python2
Public bug reported:
I'm running Kubuntu 14.10 x86_64
===========================================================
$ sudo apt-get upgrade -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
apport
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/183 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 232121 files and directories currently installed.)
Preparing to unpack .../apport_2.14.7-0ubuntu8.2_all.deb ...
apport stop/waiting
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/apport_2.14.7-0ubuntu8.2_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/apport_2.14.7-0ubuntu8.2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
=============================================================================
$ sudo apt-get remove --purge apport
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
apport*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 1,327 kB disk space will be freed.
Do you want to continue? [Y/n]
dpkg: error processing package apport (--purge):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
apport
E: Sub-process /usr/bin/dpkg returned an error code (1)
** Affects: apport (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1424224
Title:
fail to update if /usr/bin/python points to python3 instead of python2
Status in apport package in Ubuntu:
New
Bug description:
I'm running Kubuntu 14.10 x86_64
===========================================================
$ sudo apt-get upgrade -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
apport
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/183 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 232121 files and directories currently installed.)
Preparing to unpack .../apport_2.14.7-0ubuntu8.2_all.deb ...
apport stop/waiting
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/apport_2.14.7-0ubuntu8.2_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/apport_2.14.7-0ubuntu8.2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
=============================================================================
$ sudo apt-get remove --purge apport
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
apport*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 1,327 kB disk space will be freed.
Do you want to continue? [Y/n]
dpkg: error processing package apport (--purge):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
apport
E: Sub-process /usr/bin/dpkg returned an error code (1)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1424224/+subscriptions
Follow ups
References