tente o comando sudo apt-get -f install
TL;DR:
sudo apt-get install ...saying "Unable to correct problems, you have held broken packages."
Eu estava tentando obter o recurso WebApps para PP e QQ seguindo esta postagem do blog .
Eu executei o comando sudo add-apt-repository ppa:webapps/preview para adicionar o repositório, mas recebi um erro de conexão. Desde que eu sei que o meu actual ISP dá uma conexão instável, tentei novamente e com certeza, funcionou.
Então eu corri sudo apt-get install unity-webapps-preview , mas percebi que tínhamos que atualizar apt-get primeiro, então eu bati Ctrl + C para pará-lo. Em seguida, executei sudo apt-get update , o que funcionou sem complicações, mas quando executei sudo apt-get install unity-webapps-preview novamente mais tarde, mostrei uma mensagem de erro. Aqui está o despejo:
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:
unity-webapps-preview : Depends: xul-ext-unity but it is not going to be installed
Depends: xul-ext-websites-integration but it is not going to be installed
Depends: xul-ext-webaccounts but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Eu acho que isso pode ser por causa de eu ter interrompido o comando anterior. Não teve a chance de produzir nada, no entanto - parei muito rápido.
Eu tentei estes: -
sudo apt-get install --fix-broken sudo apt-get autoclean sudo apt-get autoremove sudo apt-get -f install Mas mesmo depois de executar sudo apt-get upgrade após cada tentativa, nenhum deles funcionou.
Eu tentei limpar o repositório, mas isso também não funcionou. Primeiro, peguei o pacote usando sudo apt-get install ppa-purge and then tried to purge the WebApps repo using sudo ppa-purga ppa: webapps / preview '.
Se você observar o despejo de erros com cuidado, ele diz:
Depends: xul-ext-unity but it is not going to be installed Depends: xul-ext-websites-integration but it is not going to be installed Depends: xul-ext-webaccounts but it is not going to be installed
Então eu tentei instalá-los manualmente. Eu corri sudo apt-get install xul-ext-unity , mas consegui isto:
Depends: xul-ext-websites-integration but it is not going to be installed Breaks: firefox (>= 15.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed
Não tenho ideia do que a segunda parte significa, mas tentei resolver a primeira. A execução de sudo apt-get install xul-ext-websites-integration deu:
xul-ext-websites-integration : Breaks: firefox (>= 15.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed
Como último recurso, tentei sudo apt-get install xul-ext-webaccounts , mas isso também deu a mensagem sã:
Breaks: firefox (>= 14.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed
O que significa Breaks: firefox (>= 14.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed ?
Eu tentei pesquisar Google , olhando para um par de fóruns , olhando para esta questão e pesquisando em AU, mas sem sucesso. Ajuda seria apreciada.
Tags apt package-management