LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2017, 11:10 AM   #1
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 18.3 (Desktop)
Posts: 1,549

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Broken packages notification prior to update. Mint 18, Cinnamon


Hi,
During a regular update session after being notified of new updates I was unable to continue as the Update Manager told me that I would need to fix broken packages, this would involve removing stuff like hplip and cups. I tend to use the Update Manager and Synaptic for convenience. I held back while having a look round Google latterly thinking I should be able to re-install the print stuff later so I hit the "Fix Broken Packages" button in Synaptic which again warned me but I zapped them anyway.

Now here's the problem... Trying to re-install via Synaptic gives me
Code:
Could not apply changes! Fix broken packages first.
Next I tried...
Code:
~ $ sudo apt-get purge hplip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'hplip' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 35 not to upgrade.
so it looks like it's missing. I also removed the .hplip directory and config file in my home directory.
Next I tried
Code:
sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://archive.canonical.com/ubuntu xenial InRelease                     
Ign:4 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages sarah InRelease
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]       
Hit:6 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages sarah Release
Get:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]     
Fetched 306 kB in 0s (478 kB/s)                              
Reading package lists... Done
Soadyheid-HP-Z400-Workstation ~ $ sudo apt-get install hplip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 hplip : Depends: cups (>= 1.1.20)
         Depends: printer-driver-hpcups (= 3.16.3+repack0-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Interesting... cups and printer-driver-hpcups are two of the packages which were zapped.

So far I've tried to re-install both packages with Synaptic but, again. it's not a happy bunny. Any thoughts? I've tried different repositories but that only seems to confuse matters, back to my defaults and local UK mirror.
Obviously my HP Photosmart 5520, which was WiFi connected, has gone AWOL for the moment.

It's how to resolve the broken package issue which is the problem.

Thanks for any help.

Play Bonny!

Soadyheid

 
Old 03-28-2017, 12:14 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Can you run sudo apt-get update, then the following commands:

sudo apt-get check

dpkg --audit


Also, sudo -s apt-get autoremove to check if you have any orphaned dependencies.

Last edited by hydrurga; 03-28-2017 at 12:16 PM. Reason: Added sudo-apt-get update to make sure cache up to date
 
Old 03-28-2017, 01:35 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
FrankenMint?

Code:
sudo apt-get install -f
and follow the prompt.

If that fails to correct the original issue, then
Code:
inxi -r | pastebin
and reply with the link.

Last edited by Habitual; 03-28-2017 at 01:38 PM.
 
Old 03-28-2017, 01:51 PM   #4
lbpenguino
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Rep: Reputation: Disabled
Hello, I am having the identical issue posted by Soadyheid. Using Mint 18.1 xfce. (I am not an expert and purposely chose the "don't break my computer" option for updates! Didn't work There was an update involving cups yesterday where an error was reported and that must have been the start of all this.)
My HP printer now does not work at all.
I tried the same things Soadyheid tried with the same results.
I followed the advice of hydrurga and no orphaned dependencies were reported.
I read what Habitual wrote. The result of sudo apt-get install -f was zero for everything and 32 not upgraded. I went to the address of the link in github but I don't know what I am supposed to do there (not conversant with github, sorry, I am user but not a programmer).
I am standing by for more advice.
Thank you!
 
Old 03-28-2017, 02:09 PM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Hi, lbpenguino.

Just for info, it was only the last command in my post that was to check for orphaned dependencies. The previous two were to check for package management inconsistencies.

The fact that you too are experiencing the problem indicates that it is a more widespread problem. A quick Google finds this:

https://forums.linuxmint.com/viewtopic.php?t=242497

Different people seem to have resolved the problem in different ways...

I'll continue having a look around.
 
Old 03-28-2017, 02:41 PM   #6
lbpenguino
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Rep: Reputation: Disabled
Thank you, hydrurga.
I had tried sudo apt-get install -f previously without results.
Looking at the page you cited where people tried various things, I tried:
sudo apt-get purge cups
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get update
Then:
sudo apt-get install cups

Results:
leslie@LxMint18 ~ $ sudo apt-get install cups
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
cups : Depends: libcups2 (= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed
Depends: cups-core-drivers (>= 2.1.3-4)
Depends: cups-daemon (>= 2.1.3-4)
E: Unable to correct problems, you have held broken packages.

Hydrurga, it looks like some people got results on that forum and others have not. The working hypothesis is that the repositories are being updated across the mirrors, explaining this variability in results.

I wonder if I should just stand by and keep re-trying the above sequence until it works? Seems like this is really still a mystery. Thanks for your help.
 
Old 03-28-2017, 02:49 PM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
@lbpenguino: what you could do in the meantime is run dpkg -l '*cups*' to see what you actually have installed.

Depending on that, we could then check what you can get hold of through the repos.

Just found this bug report with a couple of workarounds mentioned: https://bugs.launchpad.net/ubuntu/+s...s/+bug/1676621
 
Old 03-28-2017, 02:54 PM   #8
lbpenguino
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Rep: Reputation: Disabled
Hydrurga, About to have a conference call. As soon as I'm done I'll do just what you advise and send results. Much appreciate your help.
 
Old 03-28-2017, 03:01 PM   #9
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://archive.canonical.com/ubuntu xenial InRelease                     
Ign:4 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages sarah InRelease
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]       
Hit:6 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages sarah Release
You'll never fix this if you don't stop mixing repos from all over creation.
That is my "working hypothesis"

Last edited by Habitual; 03-28-2017 at 03:02 PM.
 
Old 03-28-2017, 03:17 PM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by Habitual View Post
Code:
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://archive.canonical.com/ubuntu xenial InRelease                     
Ign:4 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages sarah InRelease
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]       
Hit:6 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages sarah Release
You'll never fix this if you don't stop mixing repos from all over creation.
That is my "working hypothesis"
If OP is running Mint 18, not Mint 18.1, then sarah and xenial are valid.
 
Old 03-28-2017, 03:58 PM   #11
lbpenguino
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Rep: Reputation: Disabled
leslie@LxMint18 ~ $ dpkg -l '*cups*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un bluez-cups <none> <none> (no description available)
un cups <none> <none> (no description available)
ii cups-browsed 1.8.3-2ubunt amd64 OpenPrinting CUPS Filters - cups-
ii cups-bsd 2.1.3-4ubunt amd64 Common UNIX Printing System(tm) -
ii cups-client 2.1.3-4ubunt amd64 Common UNIX Printing System(tm) -
ii cups-common 2.1.3-4ubunt all Common UNIX Printing System(tm) -
rc cups-core-driv 2.1.3-4ubunt amd64 Common UNIX Printing System(tm) -
rc cups-daemon 2.1.3-4 amd64 Common UNIX Printing System(tm) -
ii cups-filters 1.8.3-2ubunt amd64 OpenPrinting CUPS Filters - Main
ii cups-filters-c 1.8.3-2ubunt amd64 OpenPrinting CUPS Filters - PPD-l
un cups-filters-i <none> <none> (no description available)
un cups-pdf <none> <none> (no description available)
ii cups-pk-helper 0.2.5-2ubunt amd64 PolicyKit helper to configure cup
ii cups-ppdc 2.1.3-4ubunt amd64 Common UNIX Printing System(tm) -
ii cups-server-co 2.1.3-4ubunt all Common UNIX Printing System(tm) -
un ghostscript-cu <none> <none> (no description available)
un hplip-cups <none> <none> (no description available)
ii libcups2:amd64 2.1.3-4ubunt amd64 Common UNIX Printing System(tm) -
ii libcups2:i386 2.1.3-4ubunt i386 Common UNIX Printing System(tm) -
ii libcupscgi1:am 2.1.3-4ubunt amd64 Common UNIX Printing System(tm) -
ii libcupsfilters 1.8.3-2ubunt amd64 OpenPrinting CUPS Filters - Share
ii libcupsfilters 1.8.3-2ubunt i386 OpenPrinting CUPS Filters - Share
ii libcupsimage2: 2.1.3-4ubunt amd64 Common UNIX Printing System(tm) -
ii libcupsimage2: 2.1.3-4ubunt i386 Common UNIX Printing System(tm) -
ii libcupsmime1:a 2.1.3-4ubunt amd64 Common UNIX Printing System(tm) -
ii libcupsppdc1:a 2.1.3-4ubunt amd64 Common UNIX Printing System(tm) -
un printer-driver <none> <none> (no description available)
ii python-cups 1.9.73-0ubun amd64 Python bindings for CUPS
un python-cupshel <none> <none> (no description available)
un python2.7-cups <none> <none> (no description available)
ii python3-cups 1.9.73-0ubun amd64 Python3 bindings for CUPS
ii python3-cupshe 1.5.7+201602 all Python modules for printer config
un python3.5-cups <none> <none> (no description available)

Above is what I got.
I'll go look at that bug report.
 
Old 03-28-2017, 04:01 PM   #12
lbpenguino
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Rep: Reputation: Disabled
Thought I should double-check my version given the above.
leslie@LxMint18 ~ $ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18.1
DISTRIB_CODENAME=serena
DISTRIB_DESCRIPTION="Linux Mint 18.1 Serena"
 
Old 03-28-2017, 04:06 PM   #13
lbpenguino
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Rep: Reputation: Disabled
Hydrurga and Habitual,
Do you advise that I do the following fix suggested in the bug report?
Soma Talos (somatalos) wrote 2 hours ago: #11

WORKAROUND:

install manually "http://archive.ubuntu.com/ubuntu/pool/main/c/cups/cups-daemon_2.1.3-4ubuntu0.2_amd64.deb" to fix cups unmet dependencies.

Before I tackle it (not being an expert at manual installs), I'd like to know if it's a good idea.

Thanks.
 
Old 03-28-2017, 05:16 PM   #14
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
If OP is running Mint 18, not Mint 18.1, then sarah and xenial are valid.
Good call, I wasn't thinking too clearly.
Whatever it takes.

Quote:
Originally Posted by lbpenguino View Post
Hydrurga and Habitual,
I'd like to know if it's a good idea.
Thanks.

Based on https://bugs.launchpad.net/ubuntu/+s...21/comments/11
I would. What's the worst that can happen? Break cups? Oh Noes...
terminal>
Code:
wget http://archive.ubuntu.com/ubuntu/pool/main/c/cups/cups-daemon_2.1.3-4ubuntu0.2_amd64.deb
sudo dpkg -i cups-daemon_2.1.3-4ubuntu0.2_amd64.deb
may be
Code:
sudo dpkg -u cups-daemon_2.1.3-4ubuntu0.2_amd64.deb
or just use pointy clicky to navigate and open ~/cups-daemon_2.1.3-4ubuntu0.2_amd64.deb
should offer to install from that action.

Last edited by Habitual; 03-28-2017 at 05:20 PM.
 
Old 03-28-2017, 05:22 PM   #15
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by lbpenguino View Post
Hydrurga and Habitual,
Do you advise that I do the following fix suggested in the bug report?
Soma Talos (somatalos) wrote 2 hours ago: #11

WORKAROUND:

install manually "http://archive.ubuntu.com/ubuntu/pool/main/c/cups/cups-daemon_2.1.3-4ubuntu0.2_amd64.deb" to fix cups unmet dependencies.

Before I tackle it (not being an expert at manual installs), I'd like to know if it's a good idea.

Thanks.
You could give it a go, but you may need more than that (cups-core-drivers for one, which is missing from your system). Someone on the Mint thread I linked to earlier has suggested finding all the dependencies (cups-daemon, cups-core-drivers, etc) with the 2.1.3-4ubuntu0.2 suffix and installing them separately, but I'm not sure if you have to go that far.

You can find the dependencies of cups with apt-cache show '^cups$' (Depends: line; just concentrate on those with 'cups' in their name), or a more fuller list including dependencies of dependencies with apt depends cups.

I would start with your two missing packages first though, cups-daemon and cups-core-drivers, and try an update/upgrade after that to see if it has fixed the dependency problem. If that doesn't work, try the other dependencies produced with the apt-cache show command.

Sorry I can't be more precise. What I can say though is that this was a right royal muck-up by whoever's packaging cups at Ubuntu.

Last edited by hydrurga; 03-28-2017 at 06:12 PM.
 
  


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
Software update Error Mint 18 Cinnamon Zzo0o0zZ Linux - Newbie 3 08-08-2016 04:02 AM
[SOLVED] Fix broken packages in Linux Mint kresica35 Linux - Newbie 17 07-01-2015 07:28 AM
update manager and other software stopped working in mint 17.1 cinnamon mintisurgeon Linux - Newbie 3 01-27-2015 04:08 AM
[SOLVED] Broken packages linux mint 16 tony044 Linux - Newbie 3 05-23-2014 04:43 AM
Mint Update has stopped loading the notification icon at startup (Mint 10) icekool Linux Mint 6 12-19-2010 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:49 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