
16.04로 업그레이드하려고 했을 때 시스템에 복구해야 할 "불안정한 패키지"가 있다는 메시지가 나타났습니다. 업데이트를 실행할 때마다 다음이 표시됩니다.
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target Translations (multiverse/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target Translations (universe/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target Translations (multiverse/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:27 and /etc/apt/sources.list:54
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list:54
W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target Translations (universe/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:54
내가 실행했을 때 cat -n /etc/apt/sources.list
나는 다음을 얻었습니다.
1 # deb cdrom:[Ubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)]/ wily main restricted
2 # deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)]/ trusty main restricted
3
4 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
5 # newer versions of the distribution.
6 deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
7 deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
8
9 ## Major bug fix updates produced after the final release of the
10 ## distribution.
11 deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
12 deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
13
14 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
15 ## team. Also, please note that software in universe WILL NOT receive any
16 ## review or updates from the Ubuntu security team.
17 deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
18 deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
19 deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
20 deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
21
22 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
23 ## team, and may not be under a free licence. Please satisfy yourself as to
24 ## your rights to use the software. Also, please note that software in
25 ## multiverse WILL NOT receive any review or updates from the Ubuntu
26 ## security team.
27 deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
28 deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
29 deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
30 deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
31
32 ## N.B. software from this repository may not have been tested as
33 ## extensively as that contained in the main release, although it includes
34 ## newer versions of some applications which may provide useful features.
35 ## Also, please note that software in backports WILL NOT receive any review
36 ## or updates from the Ubuntu security team.
37 deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
38 deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
39
40 deb http://security.ubuntu.com/ubuntu xenial-security main restricted
41 deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
42 deb http://security.ubuntu.com/ubuntu xenial-security universe
43 deb-src http://security.ubuntu.com/ubuntu xenial-security universe
44 deb http://security.ubuntu.com/ubuntu xenial-security multiverse
45 deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
46
47 ## Uncomment the following two lines to add software from Canonical's
48 ## 'partner' repository.
49 ## This software is not part of Ubuntu, but is offered by Canonical and the
50 ## respective vendors as a service to Ubuntu users.
51 # deb http://archive.canonical.com/ubuntu trusty partner
52 # deb-src http://archive.canonical.com/ubuntu trusty partner
53
54 deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse main restricted universe
55
56 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
57 # newer versions of the distribution.
58
59 ## Major bug fix updates produced after the final release of the
60 ## distribution.
61
62 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
63 ## team. Also, please note that software in universe WILL NOT receive any
64 ## review or updates from the Ubuntu security team.
65
66 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
67 ## team, and may not be under a free licence. Please satisfy yourself as to
68 ## your rights to use the software. Also, please note that software in
69 ## multiverse WILL NOT receive any review or updates from the Ubuntu
70 ## security team.
71
72 ## N.B. software from this repository may not have been tested as
73 ## extensively as that contained in the main release, although it includes
74 ## newer versions of some applications which may provide useful features.
75 ## Also, please note that software in backports WILL NOT receive any review
76 ## or updates from the Ubuntu security team.
77
78
79 ## Uncomment the following two lines to add software from Canonical's
80 ## 'partner' repository.
81 ## This software is not part of Ubuntu, but is offered by Canonical and the
82 ## respective vendors as a service to Ubuntu users.
83 # deb http://archive.canonical.com/ubuntu wily partner
84 # deb-src http://archive.canonical.com/ubuntu wily partner
85 deb http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main universe restricted multiverse
답변1
파일을 쉽게 수정하려면 sources.list
루트로 전환한 후 다음 블록을 복사하여 터미널에 붙여넣을 수 있습니다. 일반 사용자로 돌아가려면 붙여넣은 후 한 번 sudo su
눌러야 합니다 .return
cp /etc/apt/sources.list /etc/apt/sources.list.repairbackup
cat > /etc/apt/sources.list << EOF
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
EOF
exit
메모:이렇게 하면 모든 기본 저장소가 적절한 방식으로 활성화됩니다. 변경하려는 경우 편집하거나 GUI 도구를 사용할 수 있습니다. 귀하의 오래된 버기는 sources.list
에서 찾을 수 있습니다 /etc/apt/sources.list.repairbackup
.