W:目标翻译

W:目标翻译

我被发送到这里提出我的问题,因为我运行的是 Linux Mint Mate,而 askubuntu 不支持我的操作系统的帮助,因此希望这里有人可以提供帮助。如果这个问题已经发布,我深表歉意,并很乐意将其删除。

当我打开它们时,我的源列表中似乎没有任何内容,所以我不知道它是从哪里获取这些多个位置的。

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-only 的;你应该删除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

相关内容