Errors While Processing

Archived topics about LMDE 1 and LMDE 2
Locked
Transitman
Level 2
Level 2
Posts: 95
Joined: Sun Dec 02, 2007 1:48 am

Errors While Processing

Post by Transitman »

Short back-story, I am having issues either uninstalling or installing packages from either "gdebi" or through "synaptic"

This is the error that is being given, and honestly it is greek to me. So if someone could help, I would appreciate it.

Code: Select all

(Reading database ... 389170 files and directories currently installed.)
Removing opera-next ...
Traceback (most recent call last):
  File "/usr/sbin/update-software-center", line 38, in <module>
    from softwarecenter.db.update import rebuild_database
  File "/usr/share/software-center/softwarecenter/db/__init__.py", line 2, in <module>
    from debfile import DebFileApplication
  File "/usr/share/software-center/softwarecenter/db/debfile.py", line 26, in <module>
    from softwarecenter.db.application import Application, AppDetails
  File "/usr/share/software-center/softwarecenter/db/application.py", line 27
    from softwarecenter.backend.channel # import is_channel_available
                                                                    ^
SyntaxError: invalid syntax
dpkg: error processing opera-next (--purge):
 subprocess installed post-removal script returned error exit status 1
Processing triggers for hicolor-icon-theme ...
Processing triggers for packagekit-backend-aptcc ...
Processing triggers for gnome-menus ...
Processing triggers for desktop-file-utils ...
Processing triggers for man-db ...
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for menu ...
Errors were encountered while processing:
 opera-next
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up software-center (5.1.2debian3.1) ...
SyntaxError: ('invalid syntax', ('/usr/share/software-center/softwarecenter/backend/channel.py', 25, 47, 'from softwarecenter.distro # import get_distro\n'))

SyntaxError: ('invalid syntax', ('/usr/share/software-center/softwarecenter/db/application.py', 27, 66, 'from softwarecenter.backend.channel # import is_channel_available\n'))

SyntaxError: ('invalid syntax', ('/usr/share/software-center/softwarecenter/db/update.py', 59, 63, 'from softwarecenter.db.database # import parse_axi_values_file\n'))

dpkg: error processing software-center (--configure):
 subprocess installed post-installation script returned error exit status 101
Setting up opera (12.13.1734) ...
Traceback (most recent call last):
  File "/usr/sbin/update-software-center", line 38, in <module>
    from softwarecenter.db.update import rebuild_database
  File "/usr/share/software-center/softwarecenter/db/__init__.py", line 2, in <module>
    from debfile import DebFileApplication
  File "/usr/share/software-center/softwarecenter/db/debfile.py", line 26, in <module>
    from softwarecenter.db.application import Application, AppDetails
  File "/usr/share/software-center/softwarecenter/db/application.py", line 27
    from softwarecenter.backend.channel # import is_channel_available
                                                                    ^
SyntaxError: invalid syntax
dpkg: error processing opera (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for menu ...
Errors were encountered while processing:
 software-center
 opera
Opera is installed, but I am still getting these errors.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
viking777

Re: Errors While Processing

Post by viking777 »

You left out the command you ran to get those errors which doesn't help much. So what were you trying to do?

BTW the error talks about opera-next, not opera. This is the alpha/beta releases of Opera ie unstable versions. Do you want these?
Transitman
Level 2
Level 2
Posts: 95
Joined: Sun Dec 02, 2007 1:48 am

Re: Errors While Processing

Post by Transitman »

This error is from using "synaptic" to try and un-install Opera-next.
viking777

Re: Errors While Processing

Post by viking777 »

OK so try

Code: Select all

sudo apt-get --purge opera-next
And post any errors from that.
Transitman
Level 2
Level 2
Posts: 95
Joined: Sun Dec 02, 2007 1:48 am

Re: Errors While Processing

Post by Transitman »

Ran the command and got

Code: Select all

E: Invalid operation opera-next
viking777

Re: Errors While Processing

Post by viking777 »

My fault.

Code: Select all

sudo apt-get remove --purge opera-next
Transitman
Level 2
Level 2
Posts: 95
Joined: Sun Dec 02, 2007 1:48 am

Re: Errors While Processing

Post by Transitman »

I finally got it nuked, but now there is an issue involving software-center.
I get an error about sysnaptic not being able to remove /var/cache/software-center/xiapian

I can re-install it, but the program will not open.

Everything else I got resolved.
DrHu

Re: Errors While Processing

Post by DrHu »

You might have to play with the cached files..
http://ubuntuforums.org/showthread.php?t=1715201
  • --or I would if that filename xiapian is used try touch filename (where filename is in that /var/cache directory
I would also make sure you are updated..

Code: Select all

sudo apt-get update
--repository list
sudo apt-get upgrade
--apps + OS
Transitman
Level 2
Level 2
Posts: 95
Joined: Sun Dec 02, 2007 1:48 am

Re: Errors While Processing

Post by Transitman »

My apologizes to DrHu. I did not look as I noticed your post several minutes ago, but I think I've got my problem solved.

I went and disabled all my Debian repositories and activated Stable.
Did a reload, and then installed the Stable version software-center.
Then I un-installed it, and it un-installed cleanly, no error messages.

Went back and reset my repositories selections, did a reload and all was right with the world, or was it?
The only way to find out was by installing the latest version of Opera, and did so via "gdebi".
It installed without issue and without any error messages.

Now we shall see if this holds.
Thanks for those who tried to help.
Locked

Return to “LMDE Archive”