W:ターゲットソース(main/source/Sources)が/etc/apt/sources.list:2および/etc/apt/sources.list:7で複数回構成されました。

W:ターゲットソース(main/source/Sources)が/etc/apt/sources.list:2および/etc/apt/sources.list:7で複数回構成されました。

「sudo apt-get update」の実行中にエラーが発生しました。

 xyz@xyz:~$ sudo apt-get update
Hit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease                           
Hit:3 http://archive.canonical.com/ubuntu focal InRelease                                 
Hit:4 http://ppa.launchpad.net/maarten-fonville/android-studio/ubuntu focal InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Get:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Hit:8 http://ppa.launchpad.net/ubuntuhandbook1/lives/ubuntu focal InRelease
Get:9 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:10 http://dl.google.com/linux/chrome/deb stable InRelease
Fetched 214 kB in 6s (37.1 kB/s)
Reading package lists... Done
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7

ベストアンサー1

これはエラーではなく警告であり、同じリポジトリが存在することを知らせるだけです/etc/apt/sources.list。ファイルの7行を削除して2番目の定義を削除できます。

おすすめ記事