Apt diz que os pacotes foram mantidos, o que fazer? Soluções de outras perguntas não funcionam para mim

0
Eu tenho o mesmo problema. como @Jarle Hammen Knudsen desta questão , mas as soluções que funcionaram para eles de alguma forma não funcionam para mim. Originalmente, eu postei isso aqui, mas ele foi excluído porque "não responde à pergunta", por isso vou fazer outra pergunta com o mesmo nome e tags. Se isso não for permitido, por favor, envie um e-mail para mim com uma resposta.

Estou usando o GNURoot Debian v.0.6.12_armhf para executar o Debian 8.10 no meu Samsung Galaxy S5 (modelo SM-G903M, Android 5.1.1 "Lollipop"), apenas para ter o R no meu telefone (em parte porque meu PC está quebrado e em parte porque é mais prático). No entanto, tenho cinco pacotes que foram retidos: r-base, r-base-dev, r-cran-boot, r-cran-codetools e r-recomendado.

Primeiro, eu tentei a solução do @Gregory Smitherman , instalando um pacote no momento:

root@localhost:/# apt list --upgradable
Listing... Done
r-base/jessie-cran35 3.5.0-1~jessiecran.0 all [upgradable from: 3.3.3-1~bpo8+1]
r-base-dev/jessie-cran35 3.5.0-1~jessiecran.0 all [upgradable from: 3.3.3-1~bpo8+1]
r-cran-boot/jessie-cran35 1.3-20-1.1~jessiecran.0 all [upgradable from: 1.3-13-1]
r-cran-codetools/jessie-cran35 0.2-15-1.1~jessiecran.0 all [upgradable from: 0.2-9-1]
r-recommended/jessie-cran35 3.5.0-1~jessiecran.0 all [upgradable from: 3.3.3-1~bpo8+1]

root@localhost:/# apt-get install r-base
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:
r-base : Depends: r-base-core (>= 3.5.0-1~jessiecran.0) but 3.3.3-1~bpo8+1 is to be installed
        Depends: r-recommended (= 3.5.0-1~jessiecran.0) but 3.3.3-1~bpo8+1 is to be installed
E: Unable to correct problems, you have held broken packages.

Então eu tentei instalar as dependências no momento:

root@localhost:/# apt-get install r-base-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
r-base-core is already the newest version. 
r-base-core set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

Então, tentei usar apt-get install -f para corrigir dependências uma no momento:

root@localhost:/# apt-get install -f r-base
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:
r-base : Depends: r-base-core (>= 3.5.0-1~jessiecran.0) but 3.3.3-1~bpo8+1 is to be installed
        Depends: r-recommended (= 3.5.0-1~jessiecran.0) but 3.3.3-1~bpo8+1 is to be installed
E: Unable to correct problems, you have held broken packages.

Então eu tentei de uma vez:

  root@localhost:/# apt-get install -f r-base r-base-core r-base-dev r-cran-boot r-cran-codetools r-recommended
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  r-base-core is already the newest version.
  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:
  r-base : Depends: r-base-core (>= 3.5.0-1~jessiecran.0) but 3.3.3-1~bpo8+1 is to be installed
  r-base-dev : Depends: r-base-core (>= 3.5.0-1~jessiecran.0) but 3.3.3-1~bpo8+1 is to be installed
  r-cran-boot : Depends: r-base-core (>= 3.5.0-1~jessiecran.0) but 3.3.3-1~bpo8+1 is to be installed
            Depends: r-api-3.5 but it is not installable
  r-cran-codetools : Depends: r-base-core (>= 3.5.0-1~jessiecran.0) but 3.3.3-1~bpo8+1 is to be installed
            Depends: r-api-3.5 but it is not installable
  r-recommended : Depends: r-base-core (>= 3.5.0-1~jessiecran.0) but 3.3.3-1~bpo8+1 is to be installed
  E: Unable to correct problems, you have held broken packages.

Em seguida, tentei a segunda solução alternativa do @Dimuth Tharaka Menikgama:

  root@localhost:/# apt list --upgradable Listing... Done
  r-base/jessie-cran35 3.5.0-1~jessiecran.0 all [upgradable from: 3.3.3-1~bpo8+1]
  r-base-dev/jessie-cran35 3.5.0-1~jessiecran.0 all [upgradable from: 3.3.3-1~bpo8+1]
  r-cran-boot/jessie-cran35 1.3-20-1.1~jessiecran.0 all [upgradable from: 1.3-13-1]
  r-cran-codetools/jessie-cran35 0.2-15-1.1~jessiecran.0 all [upgradable from: 0.2-9-1]
  r-recommended/jessie-cran35 3.5.0-1~jessiecran.0 all [upgradable from: 3.3.3-1~bpo8+1]
  root@localhost:/# sudo apt-get -s dist-upgrade
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Calculating upgrade... Done
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Então tentei a solução original do @GAD3R :

  root@localhost:/# sudo apt-get dist-upgrade
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Calculating upgrade... Done
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Mas ainda assim, o problema persistiu:

  root@localhost:/# apt list --upgradable
  Listing... Done
  r-base/jessie-cran35 3.5.0-1~jessiecran.0 all [upgradable from: 3.3.3-1~bpo8+1]
  r-base-dev/jessie-cran35 3.5.0-1~jessiecran.0 all [upgradable from: 3.3.3-1~bpo8+1]
  r-cran-boot/jessie-cran35 1.3-20-1.1~jessiecran.0 all [upgradable from: 1.3-13-1]
  r-cran-codetools/jessie-cran35 0.2-15-1.1~jessiecran.0 all [upgradable from: 0.2-9-1]
  r-recommended/jessie-cran35 3.5.0-1~jessiecran.0 all [upgradable from: 3.3.3-1~bpo8+1]

Por fim, tentei apt-get update e apt-get upgrade , mas não funcionou dessa vez mais do que da última vez em que tentei.

  root@localhost:/# apt-get update
  [censored because I don't have 10 points of reputation and these count as links]
  Fetched 445 kB in 18s (23.9 kB/s)
  Reading package lists... Done
  root@localhost:/# apt-get upgrade
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Calculating upgrade... Done
  The following packages have been kept back:
    r-base r-base-dev r-cran-boot r-cran-codetools
    r-recommended
  0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

Por favor, ajude, fornecendo uma solução que atualize / atualize os cinco pacotes acima mencionados.

    
por LuigiRM 14.05.2018 / 18:20

1 resposta

1

Você tem a arquitetura armhf. O repositório CRAN Debian fornece apenas binários amd64 e i386. No entanto, alguns pacotes não contêm binários específicos da arquitetura (como r-base , r-base-dev , r-cran-boot ...). Apt irá considerar isso. No entanto, os repositórios do Debian têm apenas R 3.3.3, portanto, as dependências dos pacotes independentes de arquitetura não podem ser resolvidas.

tl; dr: Fique com os pacotes Debian ou construa você mesmo os pacotes que faltam.

    
por 14.05.2018 / 20:00