cups : Depends: libcups2 (= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed

Bug #1676621 reported by michaelcole on 2017-03-27
166
This bug affects 34 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Undecided
HaolinLi

Bug Description

This is related to this bug https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1642790

After `sudo apt-get -f install`, it removed cups and marked a bunch of cups packages as unnecessary

`sudo apt-get autoremove` removed them.

Now when I try to re-install cups, I get this error:

```
☀ sudo apt-get install cups cups-daemon cups-core-drivers Mod master
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: libcupscgi1 (>= 1.4.2) but it is not going to be installed
        Depends: libcupsmime1 (>= 1.4.0) but it is not going to be installed
        Recommends: printer-driver-gutenprint but it is not going to be installed
 cups-core-drivers : Depends: libcups2 (= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed
 cups-daemon : Depends: libcups2 (= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed
               Depends: libcupsmime1 (>= 1.5.0) but it is not going to be installed
               Recommends: cups-browsed but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

```

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cups (Ubuntu):
status: New → Confirmed
Uriel (CP) (urielc) wrote :

Same issue for me, with the same procedure as described above. I can't print now, on Xenial.

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)
        Depends: cups-client (>= 2.1.3-4)
        Depends: cups-filters (>= 1.0.24-3~) but it is not going to be installed
        Recommends: printer-driver-gutenprint but it is not going to be installed
        Recommends: cups-filters (>= 1.0.36) but it is not going to be installed or
                    ghostscript-cups (>= 9.02~)
E: Unable to correct problems, you have held broken packages.

Dmitry (ideamk) wrote :

aptitude half solve this problem. Install old versions:
1) cups-bsd [2.1.3-4ubuntu0.2 (now) -> 2.1.3-4 (xenial)]
2) cups-client [2.1.3-4ubuntu0.2 (now) -> 2.1.3-4 (xenial)]
3) libcups2 [2.1.3-4ubuntu0.2 (now) -> 2.1.3-4 (xenial)]
4) libcups2:i386 [2.1.3-4ubuntu0.2 (now) -> 2.1.3-4 (xenial)]
5) libcupsimage2 [2.1.3-4ubuntu0.2 (now) -> 2.1.3-4 (xenial)]
6) libcupsppdc1 [2.1.3-4ubuntu0.2 (now) -> 2.1.3-4 (xenial)]
and install new packages:
 cups cups-browsed{a} cups-core-drivers{a} cups-daemon{a} cups-server-common{a} libcupscgi1{a} libcupsmime1{a} libgutenprint2{a} printer-driver-gutenprint{a} ssl-cert{a}

Command:
aptitude install cups
Second solution is half solve - cups installed and working, but several packages is old versions

Mike Rans (rans) wrote :

I can confirm this affects Linux Mint 18.1 as well.

Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

This is probably due to us pulling 2.1.3-4ubuntu0.2 in bug 1676380.

Can you run "apt-get update" and then "apt-get -f install"? Does that help? It's not clear if you had tried "apt-get update" first in your original report.

If that doesn't work, please can you report what mirror you're using, and post the output of "apt-cache policy cups"? 2.1.3-4ubuntu0.2 should no longer be visible to apt-get unless your mirror is out-of-date, or there's some other problem somewhere, so it would be helpful to identify this.

Daniel Givens (daniel-givens) wrote :

This appears to be due to libcups2 getting updated in Backports. I was able to remove libcups2, disable Backports, then install again from the regular Xenial repo.

After apt update:

⟫ sudo apt 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)
        Recommends: printer-driver-gutenprint but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

And the policy:

⟫ apt-cache policy cups
cups:
  Installed: (none)
  Candidate: 2.1.3-4
  Version table:
     2.1.3-4ubuntu0.2 0
        100 /var/lib/dpkg/status
     2.1.3-4 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

Bert Verbessem (bverbessem) wrote :

Bug seems solved or is it because I added the proposed repository?

Robert Bernath (y-robert) wrote :

"apt-get update" and then "apt-get -f install" doesn'4 help for me.

$sudo apt 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: libcupscgi1 (>= 1.4.2) but it is not going to be installed
        Depends: libcupsmime1 (>= 1.4.0) but it is not going to be installed
        Depends: cups-core-drivers (>= 2.1.3-4) but it is not going to be installed
        Depends: cups-daemon (>= 2.1.3-4) but it is not going to be installed
        Recommends: printer-driver-gutenprint but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ apt-cache policy cups
cups:
  Installed: (none)
  Candidate: 2.1.3-4
  Version table:
     2.1.3-4ubuntu0.2 0
        100 /var/lib/dpkg/status
     2.1.3-4 500
        500 http://hu.archive.ubuntu.com/ubuntu xenial/main i386 Packages

I am unable to print :(

Soma Talos (somatalos) wrote :

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.

Robert Bernath (y-robert) wrote :

Thanks, but I need deb for i368 :(

$ sudo dpkg -i /home/br/Downloads/cups-daemon_2.1.3-4ubuntu0.2_amd64.deb
[sudo] password for br:
dpkg: error processing archive /home/br/Downloads/cups-daemon_2.1.3-4ubuntu0.2_amd64.deb (--install):
 package architecture (amd64) does not match system (i386)
Errors were encountered while processing:
 /home/br/Downloads/cups-daemon_2.1.3-4ubuntu0.2_amd64.deb

Robert Bernath (y-robert) wrote :

If I try cups-daemon_2.1.3-4ubuntu0.2_i386.deb

$ sudo dpkg -i /home/br/Downloads/cups-daemon_2.1.3-4ubuntu0.2_i386.deb
(Reading database ... 235160 files and directories currently installed.)
Preparing to unpack .../cups-daemon_2.1.3-4ubuntu0.2_i386.deb ...
Unpacking cups-daemon (2.1.3-4ubuntu0.2) over (2.1.3-4ubuntu0.2) ...
dpkg: dependency problems prevent configuration of cups-daemon:
 cups-daemon depends on libcupsmime1 (>= 1.5.0); however:
  Package libcupsmime1 is not installed.

dpkg: error processing package cups-daemon (--install):
 dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 cups-daemon

Pls help, where can I find the missing libcupsmime1 (>= 1.5.0)

Ed (edd-robbins) wrote :

Kind of unbelievable that this has happened in the mainline repo. Makes me feel like I'm using debian in 1995 again. But anyway, I fixed it by forcing a downgrade of these packages:

sudo apt-get install libcups2=2.1.3-4 cups libcupscgi1=2.1.3-4 libcupsimage2=2.1.3-4 libcupsmime1=2.1.3-4 libcupsppdc1=2.1.3-4 cups-core-drivers cups-daemon ghostscript cups-client=2.1.3-4 cups-ppdc cups-filters printer-driver-gutenprint cups-filters

YMMV

Robert Bernath (y-robert) wrote :

If I follow your instructions:

$ sudo apt-get install libcups2=2.1.3-4 cups libcupscgi1=2.1.3-4 libcupsimage2=2.1.3-4 libcupsmime1=2.1.3-4 libcupsppdc1=2.1.3-4 cups-core-drivers cups-daemon ghostscript cups-client=2.1.3-4 cups-ppdc cups-filters printer-driver-gutenprint cups-filters

Reading package lists... Done
Building dependency tree
Reading state information... Done
cups-filters is already the newest version (1.8.3-2ubuntu3.1).
cups-filters set to manually installed.
ghostscript is already the newest version (9.18~dfsg~0-0ubuntu2.3).
ghostscript set to manually installed.
cups-ppdc is already the newest version (2.1.3-4ubuntu0.2).
cups-ppdc set to manually installed.
cups-daemon is already the newest version (2.1.3-4ubuntu0.2).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 cups : Depends: cups-server-common (>= 2.1.3-4) but it is not going to be installed
 cups-bsd : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but 2.1.3-4 is to be installed
            Depends: cups-client (= 2.1.3-4ubuntu0.2) but 2.1.3-4 is to be installed
 cups-daemon : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but 2.1.3-4 is to be installed
               Recommends: cups-browsed but it is not going to be installed
 printer-driver-gutenprint : Depends: libgutenprint2 (>= 5.2.11) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Bit-Man (victor-bit-man) wrote :

Robert, please try uninstalling cups-server-common, cups-bsd and cups-daemon first. It worked for me.

Robert Bernath (y-robert) wrote :

Thank you all, guys. It seems working now :)

Maybe I tried too many things (sometimes less is more).
I did (if I remember well):

sudo apt-get install -f ... that removed gimp!?

Then
reinstalled gimp
Succesfully installed cups with sudo apt-get install cups

Unfortunatelly the printer status was: File "/usr/lib/cups/filter/rastertoqpdl" not available: No such file...

After deleting the Printer and installing the suld-driver-4.01.17 for my Samsung SCX 3400 it stated working again.

gp (gpat) wrote :

$ sudo apt install cups
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) cups [ amd64 ] < none -> 2.1.3-4 | 2.1.3-4ubuntu0.2 > ( net )
Broken cups:amd64 Depends on libcups2 [ amd64 ] < 2.1.3-4ubuntu0.2 > ( libs ) (= 2.1.3-4)
  Considering libcups2:amd64 206 as a solution to cups:amd64 10014
Broken cups:amd64 Depends on libcupscgi1 [ amd64 ] < none -> 2.1.3-4 > ( libs ) (>= 1.4.2)
  Considering libcupscgi1:amd64 0 as a solution to cups:amd64 10014
    Reinst Failed early because of libcups2:amd64
Broken cups:amd64 Depends on libcupsmime1 [ amd64 ] < none -> 2.1.3-4 > ( libs ) (>= 1.4.0)
  Considering libcupsmime1:amd64 0 as a solution to cups:amd64 10014
    Reinst Failed early because of libcups2:amd64
Broken cups:amd64 Depends on cups-core-drivers [ amd64 ] < none -> 2.1.3-4 | 2.1.3-4ubuntu0.2 > ( net ) (>= 2.1.3-4)
  Considering cups-core-drivers:amd64 0 as a solution to cups:amd64 10014
    Reinst Failed early because of libcups2:amd64
  Considering cups-core-drivers:amd64 0 as a solution to cups:amd64 10014
  Considering cups-core-drivers:i386 0 as a solution to cups:amd64 10014
    Reinst Failed early because of libcups2:i386
Broken cups:amd64 Depends on cups-daemon [ amd64 ] < none -> 2.1.3-4 > ( net ) (>= 2.1.3-4)
  Considering cups-daemon:amd64 0 as a solution to cups:amd64 10014
    Reinst Failed early because of libcups2:amd64
  Considering cups-daemon:i386 0 as a solution to cups:amd64 10014
    Reinst Failed early because of libcups2:i386
Broken cups:amd64 Depends on cups-server-common [ amd64 ] < none -> 2.1.3-4 > ( net ) (>= 2.1.3-4)
  Considering cups-server-common:amd64 0 as a solution to cups:amd64 10014
  Re-Instated cups-server-common:amd64
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: libcupscgi1 (>= 1.4.2) but it is not going to be installed
        Depends: libcupsmime1 (>= 1.4.0) but it is not going to be installed
        Depends: cups-core-drivers (>= 2.1.3-4)
        Depends: cups-daemon (>= 2.1.3-4)
        Recommends: printer-driver-gutenprint but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ apt-cache policy cups
cups:
  Installed: (none)
  Candidate: 2.1.3-4
  Version table:
     2.1.3-4ubuntu0.2 0
        100 /var/lib/dpkg/status
     2.1.3-4 500
        500 http://no.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

michael (dampfbetrieben) wrote :

Ed, your workaround in #14 worked fine for me. Thank you

Hi @Tim,

This bug isn't a duplicate of that bug.

That bug is the original failure and has to do with subprocesses exiting failure.

This bug is about broken package dependencies and I can't install cups now. They are certainly related, but that bug doesn't talk about how to fix it.

@Tim, if I missed something about fixing the packages, happy to be wrong :-)

Robie, this bug report contains most of the workarounds for this problem. How should we treat it? Duplicate of bug 1642966? Duplicate of bug 1676380? Independent of all the other bugs? Or master bug for all the other bugs?

cue (keino) wrote :

Is there a solution meanwhile?
I am using linux for production purposes only and windows for gaming only.
So printing is kind of a major issue when not working with my production OS of choice.
I cannot install cups:

he 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)
        Recommends: printer-driver-gutenprint but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Could you just please fix it and seamlessly one day I start the computer and another update would cleanup the stuff a past update destroyed in the first place?

Robie Basak (racb) wrote :

@cue

Please run "sudo apt-get update" and then report the output of "apt-cache policy cups". I don't know why your apt is seeing 2.1.3-4ubuntu0.2, so I'd like to know what does see.

Do also "sudo apt-get clean" if you still have problems.

Robie Basak (racb) wrote :

@Till

It seems to me that there are three inter-related issues, which I propose to track in three separate bugs.

(1) The actual maintainer script failure itself (not fixed)

(2) The "regression" introduced by landing 2.1.3-4ubuntu0.2 which was supposed to fix (1) but didn't. This was resolved by deleting 2.1.3-4ubuntu0.2, so is Critical but Fix Released.

(3) Some users appear to be having issues due to the deletion of 2.1.3-4ubuntu0.2 which I think is this bug. But since nobody has given us the output of "apt-cache policy cups", I propose to mark this bug Incomplete. It's not clear to me yet if this is actually a problem in the archive or if it is a problem with a mirror somewhere for example.

ophion (ophion) wrote :

Here is some additional information.

'apt policy cups' returned:

cups:
  Installed: (none)
  Candidate: 2.1.3-4
  Version table:
     2.1.3-4ubuntu0.2 0
        100 /var/lib/dpkg/status
     2.1.3-4 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

I once had a dpkg problem like this, so I tried 'sudo dpkg -P cups'. After that 'apt policy cups' returned:

cups:
  Installed: (none)
  Candidate: 2.1.3-4
  Version table:
     2.1.3-4 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

I assumed that this change would help things along, but

'sudo apt clean'
'sudo apt update'
'sudo apt install cups'

still resulted in:

The following packages have unmet dependencies:
 cups : Depends: libcups2 (= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed
        Depends: libcupscgi1 (>= 1.4.2) but it is not going to be installed
        Depends: libcupsmime1 (>= 1.4.0) but it is not going to be installed
        Depends: cups-core-drivers (>= 2.1.3-4)
        Depends: cups-daemon (>= 2.1.3-4)
        Recommends: colord
        Recommends: printer-driver-gutenprint but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I did check the policy again afterward to see whether it had changed; it had not.

Robie Basak (racb) wrote :

@ophion

Thank you, this is useful. Based on your results, can you also tell me what "apt-cache policy libcups2" gives you please?

ophion (ophion) wrote :

@Robie

As expected, it shows that the offending version of that library is installed. However, attempting to purge or downgrade that package results in apt wanting to remove half of the system.

Robie Basak (racb) wrote :

@ophion

Please paste the output of "apt-cache policy libcups2" as well as the output of your attempt to downgrade it.

Robie Basak (racb) wrote :

(and the command you're using to attempt to downgrade it please)

ophion, try the following:

sudo dpkg -P --force-depends libcups2

This will remove libcups2 without moving anything else, but now many applications in your system will not work. DO NOT REBOOT.

Now do

sudo apt-get install -f

How does this try to fix your system? Get libcups2 from the repos? Or remove half the system?

In the former case simply go on so that you get the old libcups2 from the download miror. In the latter case, do not go on. Try

sudo apt-get install -f libcups2

Please tell whether this helps and how it helped. Please post any terminal output.

HaolinLi (lihaolin1991) on 2017-03-30
Changed in cups (Ubuntu):
assignee: nobody → HaolinLi (lihaolin1991)
Nick Stoughton (nstoughton) wrote :
Download full text (5.2 KiB)

Till:

$ sudo dpkg -P --force-depends libcups2
dpkg: libcups2:amd64: dependency problems, but removing anyway as you requested:
 openjdk-8-jre-headless:amd64 depends on libcups2.
 libsane-hpaio:amd64 depends on libcups2 (>= 1.6.0).
 libcupscgi1:amd64 depends on libcups2 (= 2.1.3-4ubuntu0.2).
 printer-driver-ptouch depends on libcups2 (>= 1.4.0).
 cups-client depends on libcups2 (= 2.1.3-4ubuntu0.2).
 libgs9:amd64 depends on libcups2 (>= 1.4.0).
 google-chrome-stable depends on libcups2 (>= 1.4.0).
 printer-driver-c2esp depends on libcups2 (>= 1.4.0).
 cups-filters-core-drivers depends on libcups2 (>= 1.7.0).
 printer-driver-foo2zjs depends on libcups2 (>= 1.4.0).
 cups-pk-helper depends on libcups2 (>= 1.6.0).
 cups-bsd depends on libcups2 (= 2.1.3-4ubuntu0.2).
 libcupsimage2:amd64 depends on libcups2 (= 2.1.3-4ubuntu0.2).
 libcupsfilters1:amd64 depends on libcups2 (>= 1.7.0).
 libcupsppdc1:amd64 depends on libcups2 (= 2.1.3-4ubuntu0.2).
 libfreerdp-plugins-standard:amd64 depends on libcups2 (>= 1.4.0).
 libqt5printsupport5:amd64 depends on libcups2 (>= 1.4.0)
(Reading database ... 592347 files and directories currently installed.)
Removing libcups2:amd64 (2.1.3-4ubuntu0.2) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 chromium-browser : Depends: libcups2 (>= 1.4.0) but it is not installed
 cups-browsed : Depends: libcups2 (>= 1.7.0) but it is not installed
 cups-bsd : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but it is not installed
 cups-client : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but it is not installed
 cups-daemon : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but it is not installed
 cups-filters : Depends: libcups2 (>= 1.7.0) but it is not installed
 cups-filters-core-drivers : Depends: libcups2 (>= 1.7.0) but it is not installed
 cups-pk-helper : Depends: libcups2 (>= 1.6.0) but it is not installed
 cups-ppdc : Depends: libcups2 (>= 1.6.2) but it is not installed
 gnome-control-center : Depends: libcups2 (>= 1.6.0) but it is not installed
 gnome-settings-daemon : Depends: libcups2 (>= 1.6.0) but it is not installed
 google-chrome-stable : Depends: libcups2 (>= 1.4.0) but it is not installed
 libcupscgi1 : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but it is not installed
 libcupsfilters1 : Depends: libcups2 (>= 1.7.0) but it is not installed
 libcupsimage2 : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but it is not installed
 libcupsmime1 : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but it is not installed
 libcupsppdc1 : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but it is not installed
 libfreerdp-plugins-standard : Depends: libcups2 (>= 1.4.0) but it is not installed
 libgs9 : Depends: libcups2 (>= 1.4.0) but it is not installed
 libgtk-3-0 : Depends: libcups2 (>= 1.6.2) but it is not installed
 libgtk2.0-0 : Depends: libcups2 (>= 1.6.2) but it is not installed
 libqt5printsupport5 : Depends: libcups2 (>= 1.4.0) but it is not installed
 libreoffice-core : Depends: libcups2 (>= 1.4.0) but it is not installed
 libsane-hpaio : Depends: libcups...

Read more...

mike (mike5346874) wrote :

Guys, just send a new update so that everyone can fix the dependencies hell by simply upgrading.

Do

sudo dpkg -P --force-depends libcups2 cups-bsd cups-client cups-daemon libcups2:i386 libcupscgi1 libcupsmime1 libcupsimage2 libcupsppdc1 cups

then

sudo apt-get install -f

gato171 (gato171) wrote :

Was getting crazy with this.
This worked for me: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1676621/comments/14
Thanks Ed!

DAS (diegoalsan) wrote :
cue (keino) wrote :

Ed!!! You are the man!
Thank you.
It works and printing with Ubuntu is possible again!

Daniel Gordon (dainel) wrote :

Ed's solution also worked for me: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1676621/comments/14.
A very simple solution, just copy and paste a single command

Jan Greeff (jan-verslank) wrote :

HPlip was working fine on my Ubuntu 16.04 64-bit then just seemed to disappear.

None of these solutions worked for me.
jan@jan-ESPRIMO-E5731:~/Desktop$ 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-filters (>= 1.0.24-3~) but it is not going to be installed
        Recommends: printer-driver-gutenprint but it is not going to be installed
        Recommends: cups-filters (>= 1.0.36) but it is not going to be installed or
                    ghostscript-cups (>= 9.02~)
E: Unable to correct problems, you have held broken packages.

Any further suggestions will be most welcome.

Clémence (clemencem) wrote :

Running
# apt-get upgrade

has given me the following errors for one month now:

cups : Depends: cups-daemon (>= 2.1.3-4ubuntu0.2)
cups-core-drivers : Depends: cups-daemon (>= 2.1.3-4ubuntu0.2)
cups-daemon : Depends: libcups2 (= 2.1.3-4) but 2.1.3-4ubuntu0.2 is installed

As a result I have not been able to install or update a single package for one month.
This makes this a very important bug from my point of view.

Is there a simple solution that will allow me to install packages without tinkering with packages versions? I will not try any solution that implies temporarily removing cups as it is a requisite for my job and I cannot risk not being able to print.

Bit-Man (victor-bit-man) wrote :

Clémence have you tried Ed's solution (https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1676621/comments/14) ? It worked for me.

Clémence (clemencem) wrote :

Hi, thanks for your answer.
I had indeed tried it and it fails, unfortunately, with the following messages:

cups-daemon is already the newest version (2.1.3-4).
printer-driver-gutenprint is already the newest version (5.2.11-1).
printer-driver-gutenprint set to manually installed.
cups-filters is already the newest version (1.8.3-2ubuntu3.1).
cups-filters set to manually installed.
ghostscript is already the newest version (9.18~dfsg~0-0ubuntu2.3).
cups-ppdc is already the newest version (2.1.3-4ubuntu0.2).
cups-ppdc set to manually installed.
cups is already the newest version (2.1.3-4ubuntu0.2).
cups set to manually installed.
cups-core-drivers is already the newest version (2.1.3-4ubuntu0.2).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 cups : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but 2.1.3-4 is to be installed
        Depends: cups-daemon (>= 2.1.3-4ubuntu0.2)
        Depends: cups-client (>= 2.1.3-4ubuntu0.2)
 cups-bsd : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but 2.1.3-4 is to be installed
            Depends: cups-client (= 2.1.3-4ubuntu0.2)
 cups-core-drivers : Depends: libcups2 (= 2.1.3-4ubuntu0.2) but 2.1.3-4 is to be installed
                     Depends: cups-daemon (>= 2.1.3-4ubuntu0.2)
 libcups2 : Breaks: libcups2:i386 (!= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed
 libcups2:i386 : Breaks: libcups2 (!= 2.1.3-4ubuntu0.2) but 2.1.3-4 is to be installed
 libcupscgi1 : Breaks: libcupscgi1:i386 (!= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed
 libcupscgi1:i386 : Breaks: libcupscgi1 (!= 2.1.3-4ubuntu0.2) but 2.1.3-4 is to be installed
 libcupsimage2 : Breaks: libcupsimage2:i386 (!= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed
 libcupsimage2:i386 : Breaks: libcupsimage2 (!= 2.1.3-4ubuntu0.2) but 2.1.3-4 is to be installed
 libcupsmime1 : Breaks: libcupsmime1:i386 (!= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed
 libcupsmime1:i386 : Breaks: libcupsmime1 (!= 2.1.3-4ubuntu0.2) but 2.1.3-4 is to be installed
 libcupsppdc1 : Breaks: libcupsppdc1:i386 (!= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed
 libcupsppdc1:i386 : Breaks: libcupsppdc1 (!= 2.1.3-4ubuntu0.2) but 2.1.3-4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Yuxiang Chen (agnetd) wrote :

This work for me https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1676621/comments/14
But I execute sudo apt-get update && sudo apt-get upgrade before. May this will help.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers