Desinstalado o QGIS, agora não é possível reinstalá-lo (“E: não é possível corrigir os problemas, você realizou pacotes quebrados”.)

1

Eu realmente desmoronei na toca do coelho.

Versão do Ubuntu 16.04

Tudo começou quando eu quis testar um pré-lançamento de um software chamado QGIS. Eu estava tendo problemas para atualizá-lo para a nova versão (2.99), e recomendei que eu desinstale a versão atual (2.18), então eu fiz. Agora, não consigo instalar o 2.99, nem posso reinstalar o 2.18. Eu acho que realmente estraguei tudo e só espero que alguém possa me ajudar a obter a versão 2.18 reinstalada porque eu realmente preciso dela.

Basicamente, para instalar o QGIS 2.18, eu deveria apenas ter que executar estes comandos:

sudo apt-get update
sudo apt-get install qgis python-qgis qgis-plugin-grass

Mas quando faço isso, recebo este erro:

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:
 python-qgis : Depends: python-qscintilla2 but it is not going to be installed
 qgis-plugin-grass : Depends: grass703
E: Unable to correct problems, you have held broken packages.

Eu tentei instalar grass703 manualmente (o nome do pacote é, na verdade, grass-core ), mas ele diz que já está na versão mais recente ( 7.2.1-1~xenial1 ).

Eu também tentei procurar por pacotes retidos com o comando dpkg --get-selections | grep hold , que não retorna nada. Não há ajuda lá.

Encontrei o que parecia ser o mesmo problema here , mas tentei a sugestão na única resposta, que não funcionou. O único outro feedback foi (na minha opinião, uma repreensão bastante sarcástica e inútil), dizendo-lhes para desinstalar todos os pacotes dessa fonte. Eu instalei purge-ppa e removi tudo da fonte não-ubuntu ( -o ubuntugis , referindo-se à equipe ubuntugis , que eu tinha anteriormente Instalou alguns pacotes para tentar fazer a versão 2.99 do QGIS funcionar.) Ainda não há ajuda, e o próprio QGIS não será instalado.

Nenhuma quantidade de sudo apt-get update parece resolver este problema e estou ficando desesperada. Alguém tem alguma idéia de como eu posso consertar isso? Eu realmente preciso instalar o QGIS novamente em alguma capacidade de trabalho.

Este é o conteúdo do meu /etc/apt/sources.list :

# deb cdrom:[Xubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://de.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://de.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial universe
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://de.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://qgis.org/debian xenial main
deb-src http://qgis.org/debian xenial main

#deb http://qgis.org/debian-nightly xenial main
#deb-src http://qgis.org/debian-nightly xenial main
#deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main

e este é o conteúdo de sources.list.d/ :

-rw-r--r-- 1 root root 146 Jan  5 12:49 colingille-ubuntu-freshlight-xenial.list
-rw-r--r-- 1 root root 146 Jan  5 12:49 colingille-ubuntu-freshlight-xenial.list.save
-rw-r--r-- 1 root root 222 Jan  5 12:49 cooperjona-ubuntu-nitrotasks-xenial.list
-rw-r--r-- 1 root root 222 Jan  5 12:49 cooperjona-ubuntu-nitrotasks-xenial.list.save
-rw-r--r-- 1 root root 158 Jan  5 12:49 fyrmir-ubuntu-livewallpaper-stable-xenial.list
-rw-r--r-- 1 root root 158 Jan  5 12:49 fyrmir-ubuntu-livewallpaper-stable-xenial.list.save
-rw-r--r-- 1 root root 189 Jan  5 12:49 google-chrome.list
-rw-r--r-- 1 root root 189 Jan  5 12:49 google-chrome.list.save
-rw-r--r-- 1 root root 175 Jan  5 12:49 google-earth.list
-rw-r--r-- 1 root root 175 Jan  5 12:49 google-earth.list.save
-rw-r--r-- 1 root root 180 Jan  5 12:49 google-talkplugin.list
-rw-r--r-- 1 root root 180 Jan  5 12:49 google-talkplugin.list.save
-rw-r--r-- 1 root root 150 Jan  5 12:49 kakrueger-ubuntu-openstreetmap-xenial.list
-rw-r--r-- 1 root root 150 Jan  5 12:49 kakrueger-ubuntu-openstreetmap-xenial.list.save
-rw-r--r-- 1 root root 146 Jan  5 12:49 kubuntu-ppa-ubuntu-backports-xenial.list
-rw-r--r-- 1 root root 146 Jan  5 12:49 kubuntu-ppa-ubuntu-backports-xenial.list.save
-rw-r--r-- 1 root root  89 Jan  5 12:49 lightzone.list
-rw-r--r-- 1 root root  89 Jan  5 12:49 lightzone.list.save
-rw-r--r-- 1 root root 501 Jan  5 12:49 mysql.list
-rw-r--r-- 1 root root 500 Jan  5 12:49 mysql.list.save
-rw-r--r-- 1 root root 246 Jan  5 12:49 nathan-renniewaldock-ubuntu-qdirstat-xenial.list
-rw-r--r-- 1 root root 246 Jan  5 12:49 nathan-renniewaldock-ubuntu-qdirstat-xenial.list.save
-rw-r--r-- 1 root root 144 Jan  5 12:49 nilarimogard-ubuntu-webupd8-xenial.list
-rw-r--r-- 1 root root 144 Jan  5 12:49 nilarimogard-ubuntu-webupd8-xenial.list.save
-rw-r--r-- 1 root root 124 Jan  5 12:49 pgdg.list
-rw-r--r-- 1 root root 124 Jan  5 12:49 pgdg.list.save
-rw-r--r-- 1 root root 207 Jan  5 12:49 pipelight-ubuntu-stable-xenial.list
-rw-r--r-- 1 root root 207 Jan  5 12:49 pipelight-ubuntu-stable-xenial.list.save
-rw-r--r-- 1 root root 126 Jan  5 12:49 shutter-ubuntu-ppa-xenial.list
-rw-r--r-- 1 root root 126 Jan  5 12:49 shutter-ubuntu-ppa-xenial.list.save
-rw-r--r-- 1 root root  56 Jan  5 12:49 skype-stable.list
-rw-r--r-- 1 root root  56 Jan  5 12:49 skype-stable.list.save
-rw-r--r-- 1 root root 148 Jan  5 12:49 steam.list
-rw-r--r-- 1 root root 148 Jan  5 12:49 steam.list.save
-rw-r--r-- 1 root root 198 Jan  5 12:49 ubuntugis-ubuntu-ppa-xenial.list
-rw-r--r-- 1 root root 130 Jan  5 12:49 ubuntugis-ubuntu-ppa-xenial.list.save
-rw-r--r-- 1 root root 136 Jan  5 12:49 webupd8team-ubuntu-java-xenial.list
-rw-r--r-- 1 root root 136 Jan  5 12:49 webupd8team-ubuntu-java-xenial.list.save
-rw-r--r-- 1 root root 136 Jan  5 12:49 wine-ubuntu-wine-builds-xenial.list
-rw-r--r-- 1 root root 136 Jan  5 12:49 wine-ubuntu-wine-builds-xenial.list.save

Para @ N0rbert: Os resultados de aptitude search ?obsolete :

i   fme-desktop-2017                                       - FME Desktop 2017.1.2 Full Installer                             
i   geoda                                                  - GeoDa Software                                                  
i   google-earth-stable                                    - Explore, search and discover the planet                         
i   hl3040cncupswrapper:i386                               - Brother CUPS Inkjet Printer Definitions                         
i   hl3040cnlpr:i386                                       - Brother lpr Inkjet Printer Definitions                          
i   projectlibre                                           - A desktop replacement for Microsoft Project                     
i   rainlendar2-lite                                       - Customizable desktop calendar                                   
i   rstudio                                                - RStudio   

Saída de grep -v "^#" -r /etc/apt/sources.list /etc/apt/sources.list.d/*.list | sort | uniq:

/etc/apt/sources.list:
/etc/apt/sources.list.d/colingille-ubuntu-freshlight-xenial.list:deb http://ppa.launchpad.net/colingille/freshlight/ubuntu xenial main
/etc/apt/sources.list.d/cooperjona-ubuntu-nitrotasks-xenial.list:deb http://ppa.launchpad.net/cooperjona/nitrotasks/ubuntu xenial main
/etc/apt/sources.list:deb http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://de.archive.ubuntu.com/ubuntu/ xenial main restricted
/etc/apt/sources.list:deb http://de.archive.ubuntu.com/ubuntu/ xenial multiverse
/etc/apt/sources.list:deb http://de.archive.ubuntu.com/ubuntu/ xenial universe
/etc/apt/sources.list:deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
/etc/apt/sources.list:deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
/etc/apt/sources.list:deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates universe
/etc/apt/sources.list:deb http://qgis.org/debian xenial main
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security universe
/etc/apt/sources.list:deb-src http://qgis.org/debian xenial main
/etc/apt/sources.list.d/fyrmir-ubuntu-livewallpaper-stable-xenial.list:deb http://ppa.launchpad.net/fyrmir/livewallpaper-stable/ubuntu xenial main
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/google-earth.list:deb http://dl.google.com/linux/earth/deb/ stable main
/etc/apt/sources.list.d/google-talkplugin.list:deb http://dl.google.com/linux/talkplugin/deb/ stable main
/etc/apt/sources.list.d/kakrueger-ubuntu-openstreetmap-xenial.list:deb http://ppa.launchpad.net/kakrueger/openstreetmap/ubuntu xenial main
/etc/apt/sources.list.d/kubuntu-ppa-ubuntu-backports-xenial.list:deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial main
/etc/apt/sources.list.d/lightzone.list:deb http://download.opensuse.org/repositories/home:/ktgw0316:/LightZone/xUbuntu_15.10/ /
/etc/apt/sources.list.d/mysql.list:deb http://repo.mysql.com/apt/ubuntu/ xenial mysql-5.7
/etc/apt/sources.list.d/mysql.list:deb http://repo.mysql.com/apt/ubuntu/ xenial mysql-apt-config
/etc/apt/sources.list.d/mysql.list:deb http://repo.mysql.com/apt/ubuntu/ xenial mysql-tools
/etc/apt/sources.list.d/mysql.list:deb-src http://repo.mysql.com/apt/ubuntu/ xenial mysql-5.7
/etc/apt/sources.list.d/nathan-renniewaldock-ubuntu-qdirstat-xenial.list:deb http://ppa.launchpad.net/nathan-renniewaldock/qdirstat/ubuntu xenial main
/etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-xenial.list:deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial main
/etc/apt/sources.list.d/pgdg.list:deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main
/etc/apt/sources.list.d/pipelight-ubuntu-stable-xenial.list:deb http://ppa.launchpad.net/pipelight/stable/ubuntu xenial main
/etc/apt/sources.list.d/shutter-ubuntu-ppa-xenial.list:deb http://ppa.launchpad.net/shutter/ppa/ubuntu xenial main
/etc/apt/sources.list.d/skype-stable.list:deb [arch=amd64] https://repo.skype.com/deb stable main
/etc/apt/sources.list.d/steam.list:deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
/etc/apt/sources.list.d/steam.list:deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
/etc/apt/sources.list.d/ubuntugis-ubuntu-ppa-xenial.list:deb http://ppa.launchpad.net/ubuntugis/ppa/ubuntu xenial main
/etc/apt/sources.list.d/webupd8team-ubuntu-java-xenial.list:deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
/etc/apt/sources.list.d/wine-ubuntu-wine-builds-xenial.list:deb http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial main
    
por 1saac 05.01.2018 / 14:13

1 resposta

1

Durante o bate-papo , fizemos as seguintes etapas para corrigir o problema:

  1. Desativou repositórios obsoletos de software-properties-gtk :
  

download.opensuse.org / ...
  ppa.launchpad.net/colingille / ...
  ppa.launchpad.net/cooperjona / ...
  ppa.launchpad.net/kakrueger /...

  1. Purgou dois PPAs com

    sudo ppa-purge ppa:ubuntugis/ppa
    sudo ppa-purge ppa:kubuntu-ppa/backports
    sudo apt-get install -f
    sudo dpkg --configure -a
    

segundo deles fez problema com python-qscintilla2

  1. Em seguida, instalei o QGIS do repositório qgis.org com o seguinte comando

    sudo apt-get install qgis python-qgis qgis-plugin-grass
    
  2. Iniciou o QGIS e verificou a integridade do sistema com

    sudo apt-get check
    
por N0rbert 05.01.2018 / 15:16