Os seguintes pacotes foram mantidos

3
The following packages have been kept back: click click-dev gir1.2-click-0.4 libclick-0.4-0 0

MAS

É claro que todos esses pacotes estão suspensos em algum lugar, ou estão em algum tipo de conflito, ou causariam conflito. Eu não entendo porque ou onde. Eles não são nem bloqueados no Synaptic nem retornados por apt ou aptitude .

Estou curioso para saber por que esses pacotes são retidos? Não consigo passar isso com apt-get dist-upgrade ou com apt-get --with-new-pkgs upgrade .

Estou no Linux Mint 17.3.

apt-cache policy click click-dev gir1.2-click-0.4 libclick-0.4-0 :

click:
  Installed: 0.4.42+16.04.20151229-0~467~ubuntu14.04.1
  Candidate: 0.4.43+16.04.20160203-0~606~ubuntu14.04.1
  Version table:
     0.4.43+16.04.20160203-0~606~ubuntu14.04.1 0
        500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ trusty/main amd64 Packages
 *** 0.4.42+16.04.20151229-0~467~ubuntu14.04.1 0
        100 /var/lib/dpkg/status
     0.4.21.1ubuntu0.2 0
        500 http://mirror.vutbr.cz/ubuntu/archive/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     0.4.21.1 0
        500 http://mirror.vutbr.cz/ubuntu/archive/ trusty/main amd64 Packages
click-dev:
  Installed: 0.4.42+16.04.20151229-0~467~ubuntu14.04.1
  Candidate: 0.4.43+16.04.20160203-0~606~ubuntu14.04.1
  Version table:
     0.4.43+16.04.20160203-0~606~ubuntu14.04.1 0
        500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ trusty/main amd64 Packages
 *** 0.4.42+16.04.20151229-0~467~ubuntu14.04.1 0
        100 /var/lib/dpkg/status
     0.4.21.1ubuntu0.2 0
        500 http://mirror.vutbr.cz/ubuntu/archive/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     0.4.21.1 0
        500 http://mirror.vutbr.cz/ubuntu/archive/ trusty/main amd64 Packages
gir1.2-click-0.4:
  Installed: 0.4.42+16.04.20151229-0~467~ubuntu14.04.1
  Candidate: 0.4.43+16.04.20160203-0~606~ubuntu14.04.1
  Version table:
     0.4.43+16.04.20160203-0~606~ubuntu14.04.1 0
        500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ trusty/main amd64 Packages
 *** 0.4.42+16.04.20151229-0~467~ubuntu14.04.1 0
        100 /var/lib/dpkg/status
     0.4.21.1ubuntu0.2 0
        500 http://mirror.vutbr.cz/ubuntu/archive/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     0.4.21.1 0
        500 http://mirror.vutbr.cz/ubuntu/archive/ trusty/main amd64 Packages
libclick-0.4-0:
  Installed: 0.4.42+16.04.20151229-0~467~ubuntu14.04.1
  Candidate: 0.4.43+16.04.20160203-0~606~ubuntu14.04.1
  Version table:
     0.4.43+16.04.20160203-0~606~ubuntu14.04.1 0
        500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ trusty/main amd64 Packages
 *** 0.4.42+16.04.20151229-0~467~ubuntu14.04.1 0
        100 /var/lib/dpkg/status
     0.4.21.1ubuntu0.2 0
        500 http://mirror.vutbr.cz/ubuntu/archive/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     0.4.21.1 0
        500 http://mirror.vutbr.cz/ubuntu/archive/ trusty/main amd64 Packages

DEBUG:

apt-get -o Debug::pkgProblemResolver=true install click click-dev gir1.2-click-0.4 libclick-0.4-0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following extra packages will be installed:
  python3-click-package
Suggested packages:
  ubuntu-app-launch-tools upstart-app-launch-tools
Recommended packages:
  debootstrap
The following packages will be REMOVED:
  python3-click
The following NEW packages will be installed:
  python3-click-package
The following packages will be upgraded:
  click click-dev gir1.2-click-0.4 libclick-0.4-0
4 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 146 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] 

REPRODUÇÃO DO PROBLEMA:

apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  click click-dev gir1.2-click-0.4 libclick-0.4-0
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

DEPOIS DA CORREÇÃO:

apt-get install click click-dev gir1.2-click-0.4 libclick-0.4-0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
click-dev is already the newest version.
click-dev set to manually installed.
click is already the newest version.
libclick-0.4-0 is already the newest version.
libclick-0.4-0 set to manually installed.
gir1.2-click-0.4 is already the newest version.
gir1.2-click-0.4 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    
por Vlastimil 09.03.2016 / 16:36

3 respostas

3

De acordo com o cartaz, o seguinte comando funciona

apt-get -o Debug::pkgProblemResolver=true install click click-dev gir1.2-click-0.4 libclick-0.4-0

e dá o resultado

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following extra packages will be installed:
  python3-click-package
Suggested packages:
  ubuntu-app-launch-tools upstart-app-launch-tools
Recommended packages:
  debootstrap
The following packages will be REMOVED:
  python3-click
The following NEW packages will be installed:
  python3-click-package
The following packages will be upgraded:
  click click-dev gir1.2-click-0.4 libclick-0.4-0
4 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 146 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n]

Portanto, nenhum problema apareceu ao executar um apt-get install explícito.

Pedi ao cartaz para executá-lo sem o sinalizador de depuração para ver se ele forneceu os mesmos resultados, mas aparentemente ele já havia executado a versão de depuração.

    
por 12.03.2016 / 12:19
3

Isso acontece quando as dependências dos pacotes identificados são alteradas e novos pacotes precisam ser instalados. Precisamos usar dist-upgrade para instalar as novas dependências e atualizar os pacotes:

sudo apt-get dist-upgrade

verifica se há dependências quebradas

apt-get check

Corrigir pacotes quebrados

apt-get -f install

remova os arquivos .deb dos pacotes que não estão mais instalados no seu sistema

apt-get autoclean

Coloque o pacote desejado em espera

echo "<package_name> hold" | dpkg --set-selections

Reconfigure o pacote nomeado:

dpkg-reconfigure <package_name>
    
por 09.03.2016 / 16:50
2

Depois de atualizar versões / pacotes, o erro "Os seguintes pacotes foram mantidos de volta" pode realmente acontecer de vez em quando.

Os pacotes foram instalados a partir de outro repositório ou devido a erros de pacotes não tão frequentes, alguma dependência não está sendo satisfeita ou outros requisitos que não podem ser atendidos sem intervenção do usuário, incluindo a decisão de grandes atualizações entre versões incompatíveis de um pacote particular.

Em alguns casos, basta fazer um apt-get instalar nomes de pacotes, em outros é necessário adicionar o repositório que está faltando.

Com relação ao seu caso, encontrei este tópico:

Ferramentas de desenvolvedor do Snappy

It seems the ubuntu-device-flash package in beta PPA needs the dependency package "click-ubuntu-policy" which could not be found in Trusty, add ppa:snappy-dev/tools then I think snappy-tools could be installed, could you help verify this solution and file a bug about this issue?

    
por 09.03.2016 / 17:00