Ubuntu
為什麼更新命令顯示相同的 ppa?
我正在使用以下命令在 Ubuntu 18.04.1 LTS Bionic Beaver 上安裝 Atom 文本編輯器:-
sudo apt-get install atom
我停止了安裝過程,現在每當我執行命令時:-
sudo apt update
以下是輸出:-
Hit:1 http://ppa.launchpad.net/webupd8team/atom/ubuntu bionic InRelease Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date.
每當我嘗試再次安裝 Atom 時,都會得到以下輸出:-
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: atom : Depends: gvfs-bin but it is not installable E: Unable to correct problems, you have held broken packages.
現在,每當我嘗試從終端安裝軟體包時,使用:
sudo apt-get install "package-name"
我得到一些輸出顯示:這個包沒有安裝候選。
例如,如果我安裝 rpm,則輸出為:-
Reading package lists... Done Building dependency tree Reading state information... Done Package rpm is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'rpm' has no installation candidate
$$ *Edit $$ 現在,當我執行
sudo apt update
一切都很好但最後有這個奇怪的輸出: -E: Some index files failed to download. They have been ignored, or old ones used instead. W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target DEP-11 (main/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target CNF (main/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target Translations (restricted/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target DEP-11 (restricted/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target DEP-11 (restricted/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target CNF (restricted/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target CNF (restricted/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/official-package-repositories.list:5 W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16 W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16 W: Target Translations (universe/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16 W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16 W: Target DEP-11 (universe/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16 W: Target DEP-11 (universe/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16 W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16 W: Target CNF (universe/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16 W: Target CNF (universe/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16 W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/official-package-repositories.list:26 W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/official-package-repositories.list:26 W: Target Translations (multiverse/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/official-package-repositories.list:26 W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/official-package-repositories.list:26 W: Target DEP-11 (multiverse/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/official-package-repositories.list:26 W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/official-package-repositories.list:26 W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/official-package-repositories.list:26 W: Target CNF (multiverse/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/official-package-repositories.list:26 W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/official-package-repositories.list:26 W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target DEP-11 (main/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target CNF (main/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target Translations (restricted/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target DEP-11 (restricted/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target DEP-11 (restricted/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target CNF (restricted/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target CNF (restricted/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/official-package-repositories.list:10 W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18 W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18 W: Target Translations (universe/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18 W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18 W: Target DEP-11 (universe/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18 W: Target DEP-11 (universe/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18 W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18 W: Target CNF (universe/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18 W: Target CNF (universe/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18 W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list.d/official-package-repositories.list:28 W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list.d/official-package-repositories.list:28 W: Target Translations (multiverse/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list.d/official-package-repositories.list:28 W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list.d/official-package-repositories.list:28 W: Target DEP-11 (multiverse/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list.d/official-package-repositories.list:28 W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list.d/official-package-repositories.list:28 W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list.d/official-package-repositories.list:28 W: Target CNF (multiverse/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list.d/official-package-repositories.list:28 W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:28 and /etc/apt/sources.list.d/official-package-repositories.list:28 W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11 (main/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target CNF (main/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Translations (restricted/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11 (restricted/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11 (restricted/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target CNF (restricted/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target CNF (restricted/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Translations (universe/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11 (universe/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11 (universe/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target CNF (universe/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target CNF (universe/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Translations (multiverse/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11 (multiverse/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target CNF (multiverse/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list.d/official-package-repositories.list:36 W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target DEP-11 (main/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target CNF (main/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target Translations (restricted/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target DEP-11 (restricted/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target DEP-11 (restricted/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target CNF (restricted/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target CNF (restricted/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:46 and /etc/apt/sources.list.d/official-package-repositories.list:46 W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:48 and /etc/apt/sources.list.d/official-package-repositories.list:48 W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:48 and /etc/apt/sources.list.d/official-package-repositories.list:48 W: Target Translations (universe/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:48 and /etc/apt/sources.list.d/official-package-repositories.list:48 W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:48 and /etc/apt/sources.list.d/official-package-repositories.list:48 W: Target DEP-11 (universe/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:48 and /etc/apt/sources.list.d/official-package-repositories.list:48 W: Target DEP-11 (universe/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:48 and /etc/apt/sources.list.d/official-package-repositories.list:48 W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:48 and /etc/apt/sources.list.d/official-package-repositories.list:48 W: Target CNF (universe/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:48 and /etc/apt/sources.list.d/official-package-repositories.list:48 W: Target CNF (universe/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:48 and /etc/apt/sources.list.d/official-package-repositories.list:48 W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list.d/official-package-repositories.list:50 W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list.d/official-package-repositories.list:50 W: Target Translations (multiverse/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list.d/official-package-repositories.list:50 W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list.d/official-package-repositories.list:50 W: Target DEP-11 (multiverse/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list.d/official-package-repositories.list:50 W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list.d/official-package-repositories.list:50 W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list.d/official-package-repositories.list:50 W: Target CNF (multiverse/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list.d/official-package-repositories.list:50 W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list.d/official-package-repositories.list:50
看起來主記憶體儲庫列表文件已被刪除。
以下命令將提供
/etc/apt/sources.list
從下載的 Ubuntu 18.04 LTS 映像文件中獲取的原始基礎文件。sudo echo -e "# Sources.list obtained directly from the downloaded Ubuntu iso image file\ndeb http://archive.ubuntu.com/ubuntu/ bionic main restricted\ndeb http://security.ubuntu.com/ubuntu/ bionic-security main restricted\ndeb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted" > /etc/apt/sources.list
創建主 repo 源文件後,您將需要更新
apt-cache
:
sudo apt-get update
此時,您可能會收到錯誤,具體取決於您的某些 PPA 是否與主 repo 衝突。建議在嘗試修復您的回購問題之前禁用所有 PPA。但是,如果從單個 PPA 安裝的某些軟體需要比官方 Ubuntu 更新的庫,這也可能會產生錯誤。
如果您在更新時沒有遇到任何錯誤,那麼您可能會沒事的。但是,您可能需要啟用下面限制較少的 repo 列表。您可以將 的內容替換為
/etc/apt/sources.list
以下 repo 列表:#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ bionic universe # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-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://us.archive.ubuntu.com/ubuntu/ bionic multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic multiverse deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-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://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-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 bionic partner # deb-src http://archive.canonical.com/ubuntu bionic partner deb http://security.ubuntu.com/ubuntu bionic-security main restricted # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted deb http://security.ubuntu.com/ubuntu bionic-security universe # deb-src http://security.ubuntu.com/ubuntu bionic-security universe deb http://security.ubuntu.com/ubuntu bionic-security multiverse # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
外部連結: