Re-installing missing dependencies

Forum rules
Before you post please read this

Re-installing missing dependencies

Postby sea_disk on Thu Aug 04, 2011 12:50 am

Hi there

I am running Linux Mint 10 KDE and I recently ran into a known bug with the DMZ cursor scheme where it shows as half DMZ and half oxygen cursor scheme.
In an attempt to fix this I uninstalled the package oxygen-cursor-scheme via the Linux Mint software manager and in the process the following dependencies were uninstalled aswell:
kde-window-manager
kdebase-workspace
kdebase-workspace-bin
kdebase-workspace-data

As a result I can no longer log into KDE.
I attempted to reinstall the packages via console login with "sudo apt-get install kde-window-manager kdebase-workspace kdebase-workspace-bin kdebase-workspace-data" and I got the following error:
"E: Unable to locate package kde-workspace-bin"

I am at a loss as to how to fix this.
Any help would be greatly appreciated!
sea_disk
Level 1
Level 1
 
Posts: 6
Joined: Wed Aug 03, 2011 11:58 pm

Linux Mint is funded by ads and donations.
 

Re: Re-installing missing dependencies

Postby xenopeek on Thu Aug 04, 2011 1:53 am

Are you sure you did: sudo apt-get install kde-window-manager kdebase-workspace kdebase-workspace-bin kdebase-workspace-data

Because the error you get says you tried to do: sudo apt-get install kde-window-manager kdebase-workspace kde-workspace-bin kdebase-workspace-data

There is no dependency from any of these packages either, that would pull in "kde-workspace-bin".
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10530
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Re-installing missing dependencies

Postby sea_disk on Thu Aug 04, 2011 11:52 am

Yes! You are correct, I made a mistake when typing in the command. However I have a lot of dependency problems and I can't fix it using apt-get or aptitude. I am typing this via another Mint 10 KDE install on a seperate partition and I would like to know if there is any way I could get synaptic package manager working in the broken install, either from the working install or from the broken install itself.
sea_disk
Level 1
Level 1
 
Posts: 6
Joined: Wed Aug 03, 2011 11:58 pm

Re: Re-installing missing dependencies

Postby sea_disk on Thu Aug 04, 2011 3:32 pm

Ok, I'm out of ideas.
Does anyone have any ideas or should I just reformat the partition and reinstall Mint?
sea_disk
Level 1
Level 1
 
Posts: 6
Joined: Wed Aug 03, 2011 11:58 pm

Re: Re-installing missing dependencies

Postby AlbertP on Thu Aug 04, 2011 3:34 pm

Just reinstall the packages you can reinstall. Hopefully the missing one(s) get pulled as a dependency.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 15
Level 15
 
Posts: 5858
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Re-installing missing dependencies

Postby sea_disk on Thu Aug 04, 2011 4:26 pm

I can't reinstall anything because everything I try to install gives dependency errors and an error about opera being half installed.

I think opera is causing apt-get to quit but i'm not sure.

I tried to remove opera but I can't get rid of it.

I tried "sudo dpkg --remove opera" and got:


(Reading database ... 182523 files and directories currently installed.)
Removing opera ...
Warning in file "/usr/share/applications/google-chrome.desktop": usage of MIME type "x-scheme-handler/http" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/google-chrome.desktop": usage of MIME type "x-scheme-handler/https" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/google-chrome.desktop": usage of MIME type "x-scheme-handler/ftp" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Error in file "/usr/share/applications/ggl-qt.desktop": "app/gg" is an invalid MIME type ("app" is an unregistered media type)
Warning in file "/usr/share/applications/kde4/kmailservice.desktop": usage of MIME type "x-scheme-handler/mailto" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Error in file "/usr/share/applications/kde4/kmplayer.desktop": "uri/mms" is an invalid MIME type ("uri" is an unregistered media type)
Error in file "/usr/share/applications/kde4/kmplayer.desktop": "uri/pnm" is an invalid MIME type ("uri" is an unregistered media type)
Error in file "/usr/share/applications/kde4/kmplayer.desktop": "uri/rtspt" is an invalid MIME type ("uri" is an unregistered media type)
Error in file "/usr/share/applications/kde4/kmplayer.desktop": "uri/rtspu" is an invalid MIME type ("uri" is an unregistered media type)
Error in file "/usr/share/applications/kde4/bluedevil-input.desktop": "virtual/bluedevil-input" is an invalid MIME type ("virtual" is an unregistered media type)
Warning in file "/usr/share/applications/kde4/ktelnetservice.desktop": usage of MIME type "x-scheme-handler/telnet" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/kde4/ktelnetservice.desktop": usage of MIME type "x-scheme-handler/rlogin" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/kde4/ktelnetservice.desktop": usage of MIME type "x-scheme-handler/ssh" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Error in file "/usr/share/applications/kde4/bluedevil-audio.desktop": "virtual/bluedevil-audio" is an invalid MIME type ("virtual" is an unregistered media type)
Error in file "/usr/share/applications/kde4/bluedevil-sendfile.desktop": "virtual/bluedevil-sendfile" is an invalid MIME type ("virtual" is an unregistered media type)
Warning in file "/usr/share/applications/firefox.desktop": usage of MIME type "x-scheme-handler/http" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/firefox.desktop": usage of MIME type "x-scheme-handler/https" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/firefox.desktop": usage of MIME type "x-scheme-handler/ftp" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/firefox.desktop": usage of MIME type "x-scheme-handler/chrome" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
No protocol specified
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Traceback (most recent call last):
File "/usr/sbin/update-software-center", line 34, in <module>
from softwarecenter.db.update import rebuild_database
File "/usr/share/software-center/softwarecenter/db/update.py", line 41, in <module>
from softwarecenter.db.database import parse_axi_values_file
File "/usr/share/software-center/softwarecenter/db/database.py", line 26, in <module>
from softwarecenter.db.application import Application
File "/usr/share/software-center/softwarecenter/db/application.py", line 31, in <module>
from softwarecenter.distro import get_distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 127, in <module>
distro_instance=_get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 116, in _get_distro
module = __import__(distro_id, globals(), locals(), [], -1)
ImportError: No module named LinuxMint
dpkg: error processing opera (--remove):
subprocess installed post-removal script returned error exit status 1
Processing triggers for menu ...
Errors were encountered while processing:
opera


Any ideas?
sea_disk
Level 1
Level 1
 
Posts: 6
Joined: Wed Aug 03, 2011 11:58 pm

Re: Re-installing missing dependencies

Postby xenopeek on Thu Aug 04, 2011 4:46 pm

Hi, try:
Code: Select all
sudo apt-get install -f

Repeat, and then try:
Code: Select all
sudo apt-get update && sudo apt-get upgrade

For more tips, scroll to the very end of this page: http://www.cyberciti.biz/ref/apt-dpkg-ref.html
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10530
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Re-installing missing dependencies

Postby sea_disk on Thu Aug 04, 2011 5:09 pm

Ok, I tried that and I got:

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up opera (11.50.1074) ...
Warning in file "/usr/share/applications/google-chrome.desktop": usage of MIME type "x-scheme-handler/http" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/google-chrome.desktop": usage of MIME type "x-scheme-handler/https" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/google-chrome.desktop": usage of MIME type "x-scheme-handler/ftp" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Error in file "/usr/share/applications/ggl-qt.desktop": "app/gg" is an invalid MIME type ("app" is an unregistered media type)
Warning in file "/usr/share/applications/opera-browser.desktop": usage of MIME type "x-scheme-handler/http" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/opera-browser.desktop": usage of MIME type "x-scheme-handler/https" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/opera-browser.desktop": usage of MIME type "x-scheme-handler/ftp" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/opera-browser.desktop": usage of MIME type "x-scheme-handler/mailto" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/kde4/kmailservice.desktop": usage of MIME type "x-scheme-handler/mailto" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Error in file "/usr/share/applications/kde4/kmplayer.desktop": "uri/mms" is an invalid MIME type ("uri" is an unregistered media type)
Error in file "/usr/share/applications/kde4/kmplayer.desktop": "uri/pnm" is an invalid MIME type ("uri" is an unregistered media type)
Error in file "/usr/share/applications/kde4/kmplayer.desktop": "uri/rtspt" is an invalid MIME type ("uri" is an unregistered media type)
Error in file "/usr/share/applications/kde4/kmplayer.desktop": "uri/rtspu" is an invalid MIME type ("uri" is an unregistered media type)
Error in file "/usr/share/applications/kde4/bluedevil-input.desktop": "virtual/bluedevil-input" is an invalid MIME type ("virtual" is an unregistered media type)
Warning in file "/usr/share/applications/kde4/ktelnetservice.desktop": usage of MIME type "x-scheme-handler/telnet" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/kde4/ktelnetservice.desktop": usage of MIME type "x-scheme-handler/rlogin" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/kde4/ktelnetservice.desktop": usage of MIME type "x-scheme-handler/ssh" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Error in file "/usr/share/applications/kde4/bluedevil-audio.desktop": "virtual/bluedevil-audio" is an invalid MIME type ("virtual" is an unregistered media type)
Error in file "/usr/share/applications/kde4/bluedevil-sendfile.desktop": "virtual/bluedevil-sendfile" is an invalid MIME type ("virtual" is an unregistered media type)
Warning in file "/usr/share/applications/firefox.desktop": usage of MIME type "x-scheme-handler/http" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/firefox.desktop": usage of MIME type "x-scheme-handler/https" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/firefox.desktop": usage of MIME type "x-scheme-handler/ftp" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/firefox.desktop": usage of MIME type "x-scheme-handler/chrome" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
No protocol specified
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Traceback (most recent call last):
File "/usr/sbin/update-software-center", line 34, in <module>
from softwarecenter.db.update import rebuild_database
File "/usr/share/software-center/softwarecenter/db/update.py", line 41, in <module>
from softwarecenter.db.database import parse_axi_values_file
File "/usr/share/software-center/softwarecenter/db/database.py", line 26, in <module>
from softwarecenter.db.application import Application
File "/usr/share/software-center/softwarecenter/db/application.py", line 31, in <module>
from softwarecenter.distro import get_distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 127, in <module>
distro_instance=_get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 116, in _get_distro
module = __import__(distro_id, globals(), locals(), [], -1)
ImportError: No module named LinuxMint
dpkg: error processing opera (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for menu ...
Errors were encountered while processing:
opera
E: Sub-process /usr/bin/dpkg returned an error code (1)

Seems opera just doesn't want to fully install or remove.
sea_disk
Level 1
Level 1
 
Posts: 6
Joined: Wed Aug 03, 2011 11:58 pm

Re: Re-installing missing dependencies

Postby sea_disk on Fri Aug 05, 2011 7:53 pm

It's all fixed now!
I backed everything up, wiped the partition and reinstalled Mint.
Thanks for the help! :)
sea_disk
Level 1
Level 1
 
Posts: 6
Joined: Wed Aug 03, 2011 11:58 pm

Re: Re-installing missing dependencies

Postby xenopeek on Sat Aug 06, 2011 2:03 am

sea_disk wrote:It's all fixed now!
I backed everything up, wiped the partition and reinstalled Mint.
Thanks for the help! :)

Well, that would indeed have been the final advice. Glad it worked and you are up and running again :wink:
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10530
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Linux Mint is funded by ads and donations.
 

Return to KDE

Who is online

Users browsing this forum: Myrmidon83 and 0 guests