LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-10-2009, 10:46 AM   #1
ronaldv
Member
 
Registered: Sep 2003
Location: Amsterdam
Distribution: Mandrake 10.1/2006
Posts: 57

Rep: Reputation: 16
Question dpkg: error processing python-cairo (--configure)


I did an 8.10 to 9.04 ubuntu upgrade via the upgrade manager but it failed on me somehere midway with this message (and lots more after this):

Code:
2009-10-08 18:38:48,912 ERROR got an error from dpkg for pkg: 'ufw': 'subprocess post-installation script returned error exit status 1
'
2009-10-08 18:38:48,952 DEBUG running apport_pkgfailure() ufw: subprocess post-installation script returned error exit status 1

2009-10-08 18:38:49,028 ERROR got an error from dpkg for pkg: 'ufw': 'subprocess post-installation script returned error exit status 1
'
2009-10-08 18:39:39,585 ERROR got an error from dpkg for pkg: 'python-cairo': 'subprocess post-installation script returned error exit status 1
'
2009-10-08 18:39:39,586 DEBUG running apport_pkgfailure() python-cairo: subprocess post-installation script returned error exit status 1

2009-10-08 18:39:39,612 ERROR got an error from dpkg for pkg: 'python-cairo': 'subprocess post-installation script returned error exit status 1
Now when I boot the upgrade system the gnome-gui is completely a mess. When I try to fix this by booting into recovery mode I get these errors:

- when auto-fixing the gui:

Code:
package xserver-xorg is incomplete or not installed
- when running dkpg-reconfigure:

Code:
Setting up python-cairo (1.4.12-1.2ubuntu1) ...
file does not exist: /usr/lib/python2.5/site-packages/cairo/__init__.py
pycentral: pycentral pkginstall: error byte-compiling files (1)
pycentral pkginstall: error byte-compiling files (1)
dpkg: error processing python-cairo (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-gtk2:
 python-gtk2 depends on python-cairo (>= 1.0.2-1.1); however:
  Package python-cairo is not configured yet.

.......[lot more]......

dpkg: too many errors, stopping
Errors were encountered while processing:
 python-cairo
 python-gtk2
 python-gnome2
 python-glade2
 python-gnome2-desktop
 deskbar-applet
 libdeskbar-tracker
 python-gmenu
 gnome-menus
 python-apt
 ubuntu-system-service
 gnome-control-center
 gnome-session
 gnome-about
 gnome-panel
 gnome-applets
 python-imaging
 hplip
 gnome-applets-dbg
 command-not-found
 python-newt
 ufw
 update-manager-core
 alacarte
 python-launchpad-bugs
 python-problem-report
 python-apport
 apport
 apport-gtk
 python-xapian
 apt-xapian-index
 python-gst0.10
 python-gtkhtml2
 python-sexy
 gnome-app-install
 python-vte
 apturl
 checkbox-gtk
 computer-janitor
 computer-janitor-gtk
 devede
 epiphany-extensions
 fast-user-switch-applet
 hpijs
 foomatic-db-hpijs
 gcompris
 gdebi-core
 gdebi
 python-qt4-common
 python-qt4
 python-kde4
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to re-start the upgrade by running 'apt-get upgrade' with the 9.04-cd in the drive but this has no result.

How to proceed on this?
How can I force apt-get to continue where it failed?

Hope to hear from you, Ronald
 
Old 10-11-2009, 08:52 AM   #2
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
As I know, Ubuntu needs cairo running. And by experience, I prefer to install new Ubuntu versions than upgrading installed ones (it's really fast). But if you still want to continue with this, it's possible you need to run some thing like:

Code:
apt-get install -f
If it still does not work, then you'll have to fix cairo manually.

See you.
 
Old 10-13-2009, 09:12 AM   #3
ronaldv
Member
 
Registered: Sep 2003
Location: Amsterdam
Distribution: Mandrake 10.1/2006
Posts: 57

Original Poster
Rep: Reputation: 16
apt-get install -f give me the message that it can not continue because of previous failures of dpkg. I must run dpkg -configure to solve it.
 
Old 10-13-2009, 12:06 PM   #4
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
Is it possible that your problem comes from ufw instead of cairo? On your first log ufw gives the first error.

Whatever, you can try to unpack the contents of the package to your filesystem. Do it carefully on a directory and then to the system (or using mc: Midnight Commander) to ensure you do it correctly. After doing so, try to finish the installation with
Code:
apt-get install -f
or
Code:
dpkg --configure --pending
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
my apt-get does not work :(: "dpkg: error processing python-kaa-base (--configure):" frenchn00b Debian 3 04-22-2008 03:30 PM
dpkg: error processing webmin-core (--configure) cccc Debian 2 12-25-2006 09:34 PM
dpkg: error processing libc6 linux-ibook Debian 5 12-15-2005 08:35 PM
dpkg: error processing libc6 (--configure) spid3r DamnSmallLinux 1 10-18-2005 03:53 PM
dpkg: error processing libpam-runtime (--configure): kkrzyho Debian 2 04-14-2004 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration