기술 성공, 실패 기록소

error - Target Packages is configured multiple times in sources.list file 본문

카테고리 없음

error - Target Packages is configured multiple times in sources.list file

sunlab 2019. 9. 25. 19:57
728x90

https://askubuntu.com/questions/760746/how-to-fix-error-w-target-packages-main-binary-amd64-packages-is-configured-m

 

How to fix error W: Target Packages (main/binary-amd64/Packages) is configured multiple times in my sources.list file?

I have Ubuntu 16.04 Xenial Xerus and when I want to run sudo apt-get update or sudo apt-get autoclean or sudo apt-get install (package name) or sudo apt-get install -f, I get the following messages:

askubuntu.com

저장소 정보가 중복이 되면 안된다.

 

ex)

1) deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe

2) deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse

 

1번이 2번의 subset이기 때문에 중복이 된다.

1번을 지워줘야 한다. 아니면 2번을 지워줘도 에러는 해결된다.

 

/etc/apt/source.list 를 직접 editor로 열어서 수정해주면 된다.