Yehyun Suh

[우분투] Data from such a repository can't be authenticated and is therefore potentially dangerous to use. 문제 해결 본문

오류 해결/우분투

[우분투] Data from such a repository can't be authenticated and is therefore potentially dangerous to use. 문제 해결

Yehyun Suh 2023. 8. 24. 14:45

지난 글( https://yehyunsuh.tistory.com/31 )에서 신나게 sudo apt-get update을 마친 나는 아직 3개의 오류 메세지가 보이는 것을 확인했다. 

 

[우분투] W: The repository 'cdrom://[Ubuntu 20.04 _Focal_ - Build amd64 LIVE Binary 20200502-05:58] focal Release' does not h

이제 막 우분투를 받아서 신나게 sudo apt-get update을 했는데 나에게 아래와 같은 시련이 다가왔다. 1. 오류 메세지 W: The repository 'cdrom://[Ubuntu 20.04 _Focal_ - Build amd64 LIVE Binary 20200502-05:58] focal Release' do

yehyunsuh.tistory.com

1. 오류 메세지


W: The repository 'file:  Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

 

해당 문제는 sources.list에 있는 잘못된 주소로부터 생긴 것들이다.

2. 해결 방법

sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf /etc/apt/sources.list.d/*
sudo apt-get update

위에 적혀 있는 명령어를 실행하게 되면[1]

잘 돌아가는 것을 확인할 수 있다. 그리고 나는 sudo apt-get update가 문제없이 진행이 되길래 이제 나에게 필요한 openssh-server를 설치하기 위해

위와 같이 명령어를 쳤는데, 설치를 할 수 있는 package 후보가 없는 오류가 떴다. 이 문제에 대한 해결방안은 다음 글( https://yehyunsuh.tistory.com/33 )에서 다루도록 하겠다.

 

[우분투] E: Package <package_name> has no installation candidate 문제 해결

지난 글( https://yehyunsuh.tistory.com/32 )에서 sudo apt-get update에 대한 모든 오류를 해결하고 나에게 필요한 package를 설치하기 위해서 sudo apt-get install openssh-server를 쳤는데 나에게 돌아온 건 또다른 오류

yehyunsuh.tistory.com

 

Reference

[1] Data from such a repository can't be authenticated, askubuntu(2018년 1월 18일)  https://askubuntu.com/questions/995484/data-from-such-a-repository-cant-be-authenticated