Posts: 10
beriah
Joined: 10 May 2011
#1
I have a new install of Jayaben Desai that I'm trying to upgrade.
Here are the errors:

Errors were encountered while processing:
/var/cache/apt/archives/python-gnome2_2.28.1-2_i386.deb
/var/cache/apt/archives/python-pyorbit_2.24.0-6+b1_i386.deb
/var/cache/apt/archives/python-gconf_2.28.1-2_i386.deb
/var/cache/apt/archives/python-notify_0.1.1-2+b3_i386.deb
/var/cache/apt/archives/python-numpy_1%3a1.5.1-2+b1_i386.deb
/var/cache/apt/archives/python-urwid_0.9.9.1-1+b1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have complete output, but it is rather lengthy __{{emoticon}}__
I got the same errors with synaptic, apt-get update/upgrade, and also apt-get dist-upgrade.
I even tried apt-get check, apt-get clean, apt-get autoclean, but nothing helps.
What now?

thanks
Posts: 117
buttcoffee
Joined: 20 Aug 2010
#2
try apt-get -f install to force install each package that didn't get installed, then apt-get upgrade, keep doing that until there are no more errors.
Posts: 10
beriah
Joined: 10 May 2011
#3
Tried that, same errors __{{emoticon}}__

When I can get back on that system, I'll upload the complete error file.
Rather lengthy, so if I can't upload it here, I'll post it elsewhere.

Thanks!
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4
Zip it up before uploading. Easier to upload. I do that with apt-get dist-upgrade readouts that are long and lengthy readouts.
Posts: 10
beriah
Joined: 10 May 2011
#5

Code: Select all

The following packages will be upgraded:
  python-gconf python-gnome2 python-notify python-numpy python-pyorbit python-urwid
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
Need to get 0 B/2,762 kB of archives.
After this operation, 65.5 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
(Reading database ... 73653 files and directories currently installed.)
Preparing to replace python-gnome2 2.28.1-1 (using .../python-gnome2_2.28.1-2_i386.deb) ...
Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
  File"/usr/bin/pyclean", line 33, in <module>
    from debpython.namespace import add_namespace_files
ImportError: cannot import name add_namespace_files
dpkg: error processing /var/cache/apt/archives/python-gnome2_2.28.1-2_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
configured to not write apport reports
                                      Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to replace python-pyorbit 2.24.0-6 (using .../python-pyorbit_2.24.0-6+b1_i386.deb) ...
Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: error processing /var/cache/apt/archives/python-pyorbit_2.24.0-6+b1_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
configured to not write apport reports
                                      Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to replace python-gconf 2.28.1-1 (using .../python-gconf_2.28.1-2_i386.deb) ...
Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/apt/archives/python-gconf_2.28.1-2_i386.deb (--unpack):
 there is no script in the new version of the package - giving up
configured to not write apport reports
                                      Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to replace python-notify 0.1.1-2+b2 (using .../python-notify_0.1.1-2+b3_i386.deb) ...
Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: error processing /var/cache/apt/archives/python-notify_0.1.1-2+b3_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
configured to not write apport reports
                                      Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to replace python-numpy 1:1.5.1-2 (using .../python-numpy_1%3a1.5.1-2+b1_i386.deb) ...
Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: error processing /var/cache/apt/archives/python-numpy_1%3a1.5.1-2+b1_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
configured to not write apport reports
                                      Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to replace python-urwid 0.9.9.1-1 (using .../python-urwid_0.9.9.1-1+b1_i386.deb) ...
Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: error processing /var/cache/apt/archives/python-urwid_0.9.9.1-1+b1_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
configured to not write apport reports
                                      Traceback (most recent call last):
  File"/usr/sbin/update-python-modules", line 17, in <module>
    from pysupport import py_supported,py_installed,py_oldversions
ImportError: cannot import name py_supported
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/python-gnome2_2.28.1-2_i386.deb
 /var/cache/apt/archives/python-pyorbit_2.24.0-6+b1_i386.deb
 /var/cache/apt/archives/python-gconf_2.28.1-2_i386.deb
 /var/cache/apt/archives/python-notify_0.1.1-2+b3_i386.deb
 /var/cache/apt/archives/python-numpy_1%3a1.5.1-2+b1_i386.deb
 /var/cache/apt/archives/python-urwid_0.9.9.1-1+b1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@antiX1:~#
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#6
Try apt-get dist-upgrade
Posts: 10
beriah
Joined: 10 May 2011
#7
Well, I seem to be having a lot of problems with different things, so I'm beginning to think I have a bad install.
I've used Debian for years, so I'm no novice, but something is really messed up.
Fonts aren't found, config files aren't found/read, RoxTerm loads with errors, etc.
I'm going to start over since this was a new install anyway.

I'll report how the new install goes or if the cd burn was bad
Posts: 10
beriah
Joined: 10 May 2011
#8
anticapitalista, I have tried that two different times __{{emoticon}}__

I'm about to shutdown the machine and re-install. Too many other problems as mentioned above.

b
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#9
Sorry, I just noticed you had tried. I agree that maybe the install is the problem.
Posts: 117
buttcoffee
Joined: 20 Aug 2010
#10
You could try to purge python-support and then reinstall it, or download the python-support deb and install it, try to force it if it doesn't work. Python-support contains python-modules. If that doesn't work, you could just wait and upgrade at a later time. Do you use python a lot?

You should probably leave X when you're doing a system upgrade. That's what's advised when doing upgrades. Don't do upgrades in synaptic.
Posts: 10
beriah
Joined: 10 May 2011
#11
buttcoffee, thanks. I didn't make myself clear enough with first post.
I tried upgrading with console login. I was doing"apt-get update" and"apt-get upgrade" and then tried"apt-get dist-upgrade".
Actually tried upgrading via apt-get in console and also used synaptic in X using reload, mark updates, apply.

Anyway, tried re-installing and pretty much had same problems, so the cd may be bad.
Since I'm on a friends internet connection (dsl), I'll have to wait and download another copy and try later.
If I decide to play with the"new" installation, I'll wait till the other family is off the internet, so I won't be slowing them down. They're letting me on free via wifi, so I sure don't want to make them mad at me __{{emoticon}}__

Thanks for all the help/ideas.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#12
Hope the next install works better. FWIW I did a fresh install of antiX-M11-686 and dist-upgrade only had the issue here:

post20586.html?hilit=apt get purge firmware b43legacy installer#p20586