Ubuntuバージョン16.04を使用しています。それはすべて、QGISと呼ばれるソフトウェアのプレリリースをテストしたいときに始まりました。新しいバージョン(2.99)への更新で問題が発生したため、現在のバージョン(2.18)をアンインストールすることを推奨しました。
現在、2.99バージョンも2.18バージョンもインストールできません。本当に必要なため、バージョン2.18を再インストールしたいだけです。
基本的に、QGIS 2.18をインストールするには、次のコマンドを使用しました。
Sudo apt-get update
Sudo apt-get install qgis python-qgis qgis-plugin-grass
しかし、私がそうするとき、私はこのエラーを受け取ります:
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.
grass703
を手動でインストールしようとしましたが(パッケージ名は実際grass-core
)、既に最新バージョン(7.2.1-1~xenial1
)であると表示されます。
また、何も返さないdpkg --get-selections | grep hold
コマンドを使用して、保留パッケージを検索しようとしました。
同じ問題と思われるものを見つけました こちら ですが、私は唯一の答えで提案を試みましたが、うまくいきませんでした。他の唯一のフィードバックは(私の意見では、ややこしくて役に立たないbeり)で、そのソースからすべてのパッケージをアンインストールするように言っていました。 purge-ppa
をインストールし、ubuntu以外のソースからすべてを削除しました(-o ubuntugis
、 buntugisチーム を参照します。まだ助けがなく、QGIS自体はインストールされません。
この問題を解決するSudo apt-get update
の量はないようで、必死になっています。誰も私がこれを修正する方法を知っていますか? QGISを何らかの作業能力で再度インストールする必要があります。
これは私の/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
これは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
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
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
chat の間に、問題を修正するために次の手順を実行しました。
software-properties-gtk
の無効なリポジトリを無効にしました:download.opensuse.org/...
ppa.launchpad.net/colingille/...
ppa.launchpad.net/cooperjona/...
ppa.launchpad.net/kakrueger/...
2つのPPAをパージ
Sudo ppa-purge ppa:ubuntugis/ppa
Sudo ppa-purge ppa:kubuntu-ppa/backports
Sudo apt-get install -f
Sudo dpkg --configure -a
2番目はpython-qscintilla2
で問題を起こしました
次に、次のコマンドを使用してqgis.orgリポジトリからQGISをインストールしました
Sudo apt-get install qgis python-qgis qgis-plugin-grass
QGISを起動し、システムの整合性を確認しました
Sudo apt-get check