LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-22-2013, 05:49 PM   #16
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705

Hi,

yes.

Evo2.
 
Old 10-23-2013, 03:35 PM   #17
jazzo
Member
 
Registered: Jul 2012
Posts: 277

Original Poster
Rep: Reputation: Disabled
Ok, so in that case I will give it a go. ANy chance I can break everything?
 
Old 10-23-2013, 07:53 PM   #18
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

you were perfectly happy removing then reinstalling samba, hplip should be no different. Don't be scared of apt, learn to use it.

Evo2.
 
Old 10-25-2013, 02:06 PM   #19
jazzo
Member
 
Registered: Jul 2012
Posts: 277

Original Poster
Rep: Reputation: Disabled
Ok thanks, I will try and post back :-). Thanks for your help
 
Old 10-25-2013, 05:53 PM   #20
jazzo
Member
 
Registered: Jul 2012
Posts: 277

Original Poster
Rep: Reputation: Disabled
HI sorry , I have tried a couple of things, but this seems to be quite a mess...Evertytime I uninstall a package I get an error and a list of unmet dependencies. If I then reinstall the package I still get errors. For example:
Code:
antobbo@antobbo-xps17-ubuntu:~$ sudo apt-get remove hplip
[sudo] password for antobbo: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 printer-driver-postscript-hp : Depends: hplip (>= 3.12.2-1ubuntu3.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
[1]+  Done                    firefox
antobbo@antobbo-xps17-ubuntu:~$ apt-get install hplip
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
antobbo@antobbo-xps17-ubuntu:~$ sudo apt-get install hplip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 hplip : Depends: printer-driver-hpcups (= 3.12.2-1ubuntu3.3) but 3.12.2-1ubuntu3.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
antobbo@antobbo-xps17-ubuntu:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-32 firefox-globalmenu linux-headers-3.2.0-32-generic
  libllvm3.0:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  hplip printer-driver-hpcups
Suggested packages:
  hplip-gui hplip-doc system-config-printer
The following packages will be upgraded:
  hplip printer-driver-hpcups
2 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
11 not fully installed or removed.
Need to get 0 B/393 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up procps (1:3.2.8-11ubuntu6.2) ...
FATAL: Module bbswitch not found.
invoke-rc.d: initscript procps, action "start" failed.
dpkg: error processing procps (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of cups:
 cups depends on procps; however:
  Package procps is not configured yet.
dpkg: error processing cups (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of printer-driver-hpcups:
 printer-driver-hpcups depends on cups; however:
  Package cups is not configured yet.
dpkg: error processing printer-driver-hpcups (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of hplip:
 hplip depends on libhpmud0 (= 3.12.2-1ubuntu3.2); however:
  Version of libhpmud0 on system is 3.12.2-1ubuntu3.3.
 hplip depends on libsane-hpaio (= 3.12.2-1ubuntu3.2); however:
  Version of libsane-hpaio on system is 3.12.2-1ubuntu3.3.
 hplip depends on hplip-data (= 3.12.2-1ubuntu3.2); however:
  Version of hplip-data on system is 3.12.2-1No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                         No apport report written because the error message indicates it's a follow-up error from a previous failure.
                     No apport report written because MaxReports has already been reached
         No apport report written because MaxReports has already been reached
                                                                             ubuntu3.3.
 hplip depends on printer-driver-hpcups (= 3.12.2-1ubuntu3.2); however:
  Package printer-driver-hpcups is not configured yet.
 hplip depends on cups (>= 1.1.20); however:
  Package cups is not configured yet.
dpkg: error processing hplip (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of printer-driver-postscript-hp:
 printer-driver-postscript-hp depends on hplip (>= 3.12.2-1ubuntu3.2); however:
  Package hplip is not configured yet.
dpkg: error processing printer-driver-postscript-hp (--configure):
 dependency problems - leaving unconfigured
Setting up whoopsie (0.1.33) ...
FATAL: Module bbswitch not found.
invoke-rc.d: initscript whoopsie, action "start" failed.
dpkg: error processing whoopsie (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up rsyslog (5.8.6-1ubuntu8.5) ...
No apport report written because MaxReports has already been reached
                                                                    Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
FATAL: Module bbswitch not found.
invoke-rc.d: initscript rsyslog, action "restart" failed.
dpkg: error processing rsyslog (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports has already been reached
                                                                    dpkg: dependency problems prevent configuration of apport-gtk:
 apport-gtk depends on procps; however:
  Package procps is not configured yet.
dpkg: error processing apport-gtk (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    dpkg: dependency problems prevent configuration of samba:
 samba depends on procps; however:
  Package procps is not configured yet.
dpkg: error processing samba (--configure):
 dependency problems - leaving unconfigured
Setting up bumblebee (3.2.1-1~preciseppa6) ...
No apport report written because MaxReports has already been reached
                                                                    FATAL: Module bbswitch not found.
invoke-rc.d: initscript bumblebeed, action "start" failed.
dpkg: error processing bumblebee (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bumblebee-nvidia:
 bumblebee-nvidia depends on bumblebee (= 3.2.1-1~preciseppa6); however:
  Package bumblebee is not configured yet.
dpkg: error processing bumblebee-nvidia (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools ...
No apport report written because MaxReports has already been reached
                                                                    No apport report written because MaxReports has already been reached
                                                        update-initramfs: Generating /boot/initrd.img-3.5.0-42-generic
Errors were encountered while processing:
 procps
 cups
 printer-driver-hpcups
 hplip
 printer-driver-postscript-hp
 whoopsie
 rsyslog
 apport-gtk
 samba
 bumblebee
 bumblebee-nvidia
E: Sub-process /usr/bin/dpkg returned an error code (1)
antobbo@antobbo-xps17-ubuntu:~$ sudo apt-get remove procps
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 apport-gtk : Depends: procps
 cups : Depends: procps
 hplip : Depends: libhpmud0 (= 3.12.2-1ubuntu3.2) but 3.12.2-1ubuntu3.3 is to be installed
         Depends: libsane-hpaio (= 3.12.2-1ubuntu3.2) but 3.12.2-1ubuntu3.3 is to be installed
         Depends: hplip-data (= 3.12.2-1ubuntu3.2) but 3.12.2-1ubuntu3.3 is to be installed
 lsb-core : Depends: procps
 openssh-server : Depends: procps
 ppp : Depends: procps
 samba : Depends: procps
 ubuntu-minimal : Depends: procps
 udev : Depends: procps
 wine1.4 : Depends: procps
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
antobbo@antobbo-xps17-ubuntu:~$ sudo apt-get install procps
Reading package lists... Done
Building dependency tree       
Reading state information... Done
procps is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 hplip : Depends: libhpmud0 (= 3.12.2-1ubuntu3.2) but 3.12.2-1ubuntu3.3 is to be installed
         Depends: libsane-hpaio (= 3.12.2-1ubuntu3.2) but 3.12.2-1ubuntu3.3 is to be installed
         Depends: hplip-data (= 3.12.2-1ubuntu3.2) but 3.12.2-1ubuntu3.3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
antobbo@antobbo-xps17-ubuntu:~$
Do you reckon that reinstall the whole kernel would help at all?
 
Old 10-27-2013, 08:42 PM   #21
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

no, from what you've posted these problems have nothing to do with the kernel. What suggests to you otherwise?

I still think the way forward is to remove the non-essential packages. You may also do well to remove the universe and multivers e repositories.

Evo2.
 
Old 10-28-2013, 01:46 PM   #22
jazzo
Member
 
Registered: Jul 2012
Posts: 277

Original Poster
Rep: Reputation: Disabled
thanks. The reason why i have mentioned updating the kernel was that a while back I has some different problems with y machine (the audio stopped working and similar) and a kernel update sorted out everything.
Is there a way to distinguish between universe and multiverse repositories and the other ones I shouldn't touch? Like in this list
procps
cups
printer-driver-hpcups
hplip
printer-driver-postscript-hp
whoopsie
rsyslog
apport-gtk
samba
bumblebee
bumblebee-nvidia
what's safe to remove and what's not?
Also, one more thing. I take that before removing a package I have to remove the dependencies of that package firs. Is there a way to find out the dependencies of a package and uninstall them before uninstall the actual package?
thanks
 
Old 10-28-2013, 08:25 PM   #23
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by jazzo View Post
thanks. The reason why i have mentioned updating the kernel was that a while back I has some different problems with y machine (the audio stopped working and similar) and a kernel update sorted out everything.
Is there a way to distinguish between universe and multiverse repositories and the other ones I shouldn't touch?
The repositories are named as such in your /etc/apt/sources.list file.

Quote:
Like in this list
procps
cups
printer-driver-hpcups
hplip
printer-driver-postscript-hp
whoopsie
rsyslog
apport-gtk
samba
bumblebee
bumblebee-nvidia
Those are packages, not repositories
Quote:
what's safe to remove and what's not?
Also, one more thing. I take that before removing a package I have to remove the dependencies of that package firs. Is there a way to find out the dependencies of a package and uninstall them before uninstall the actual package?
use apt-cache to find out about packages. Eg for a description and list of dependencies etc
Code:
apt-cache show samba
More information can be obtained with:
Code:
apt-cache showpkg samba
There are commands for specific information. Eg for reverse dependencies
Code:
apt-cache rdepends samba
You can get lots of information using apt-cache. See the man page for more information.

Evo2.
 
Old 11-01-2013, 06:11 PM   #24
jazzo
Member
 
Registered: Jul 2012
Posts: 277

Original Poster
Rep: Reputation: Disabled
fab thanks for your help!
 
  


Reply



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
[SOLVED] Update package when i use other system herman.smartlion Linux - Desktop 5 04-19-2012 01:47 AM
how to remove a package from the system phenixs Linux - Software 5 03-22-2007 10:42 AM
Slackware package system Kaamoss Slackware 8 10-20-2005 07:34 PM
package system portage Boorish Id Linux From Scratch 1 03-04-2005 07:32 PM
New Package System for R.H. OldToker Linux - Distributions 2 02-19-2003 06:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:04 AM.

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