![W: 대상 번역](https://linux55.com/image/96228/W%3A%20%EB%8C%80%EC%83%81%20%EB%B2%88%EC%97%AD.png)
나는 Linux Mint Mate를 실행하고 있고 askubuntu가 내 OS에 대한 도움말을 지원하지 않기 때문에 내 질문과 함께 여기로 보내졌습니다. 여기 누군가가 도움을 줄 수 있기를 바랍니다. 해당 질문이 이미 게시된 경우 사과드리며 기꺼이 삭제해 드리겠습니다.
내 소스 목록을 열 때 아무 것도 없는 것 같아서 이러한 여러 위치를 어디서 가져오는지 알 수 없습니다.
sudo apt-get update
Ign:1 http://packages.linuxmint.com sarah InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://packages.linuxmint.com sarah Release
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Hit:5 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:6 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial InRelease
Hit:7 http://archive.canonical.com/ubuntu xenial InRelease
Get:8 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:10 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:12 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 94.5 kB in 1s (74.0 kB/s)
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
Python 솔루션을 시도했지만 아무 일도 일어나지 않습니다.
sources.list
포함하다
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/google.list
포함하다
deb http://dl.google.com/linux/chrome/deb/ stable main
그리고 /etc/apt/sources.list.d/google-chrome.list
포함
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
답변1
경고는 중복된 항목이 어디에 있는지 알려줍니다.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
/etc/apt/sources.list.d/google-chrome.list
과 를 살펴봐야 합니다 /etc/apt/sources.list.d/google.list
. 둘 다 동일한 저장소를 정의하지만 저장소가 amd64
제거되어야 함을 지정하기 때문에 전자가 더 좋습니다 google.list
.
sudo rm /etc/apt/sources.list.d/google.list
답변2
이 터미널 명령을 사용하십시오
sudo apt install python3-apt
wget https://raw.githubusercontent.com/davidfoerster/apt-remove-duplicate-source-entries/master/apt-remove-duplicate-source-entries.py
chmod +x apt-remove-duplicate-source-entries.py
답변3
연장하다스티븐 키트의답변, 이것은 나에게 효과적이었습니다.
sudo rm /etc/apt/sources.list.d/google-chrome.list