Como instalar uma versão específica do pacote CUPS do debian linux?

-1

Estou tentando instalar uma versão específica (2.2.1-8 + deb9u2) do pacote CUPS em debian: stretch-slim linux . Mas está me dando o seguinte erro.

$apt install -y cups=2.2.1-8+deb9u2
Reading package lists...
Building dependency tree...
Reading state information...
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.2.1-8+deb9u2) but 1.7.5-11+deb8u4 is to be installed
        Depends: libstdc++6 (>= 5) but 4.9.2-10+deb8u1 is to be installed
        Depends: cups-core-drivers (>= 2.2.1-8+deb9u2) but 1.7.5-11+deb8u4 is to be installed
        Depends: cups-daemon (>= 2.2.1-8+deb9u2) but 1.7.5-11+deb8u4 is to be installed
        Depends: cups-common (>= 2.2.1-8+deb9u2) but 1.7.5-11+deb8u4 is to be installed
        Depends: cups-server-common (>= 2.2.1-8+deb9u2) but 1.7.5-11+deb8u4 is to be installed
        Depends: cups-client (>= 2.2.1-8+deb9u2) but 1.7.5-11+deb8u4 is to be installed
        Recommends: avahi-daemon but it is not going to be installed
        Recommends: colord but it is not going to be installed
        Recommends: printer-driver-gutenprint but it is not going to be installed
Unable to correct problems, you have held broken packages.
The command 'apt install -y cups=2.2.1-8+deb9u2' returned a non-zero code: 100
Build step 'Execute shell' marked build as failure
Finished: FAILURE

Onde estou errado?

Por que instalar 1.7.5-11 + deb8u4 deve ser instalado?

Estou faltando alguma coisa aqui?

$ apt-cache policy cups
cups:
  Installed: 1.7.5-11+deb8u4
  Candidate: 1.7.5-11+deb8u4
  Version table:
     2.2.1-8+deb9u2 0
        -10 http://deb.debian.org/debian/ stretch/main amd64 Packages
     2.2.1-8+deb9u1~bpo8+1 0
        100 http://deb.debian.org/debian/ jessie-backports/main amd64 Packages
*** 1.7.5-11+deb8u4 0
        500 http://security.debian.org/debian-security/ jessie/updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.7.5-11+deb8u2 0
        500 http://deb.debian.org/debian/ jessie/main amd64 Packages
Por que não consigo instalar a versão 2.2.1-8deb9u2 no Debian 8 ?

    
por Tyrion Lannister 23.11.2018 / 19:27

2 respostas

0

Por causa da marcação adequada. Experimente:

apt install -t stable cups
    
por 23.11.2018 / 20:13
0

Finalmente instalamos a versão do pacote necessário. Todos esses dias eu estava tentando instalar o 2.2.1 no Debian 8, onde o Debian 8 suporta apenas até 1.7.5.

Eu usei o Debian 9 agora e funcionou perfeitamente bem.

    
por 10.12.2018 / 08:48