흔자
반응형

오류

새로운 Ubuntu 서버를 세팅하고 난 후 apt update 명령어를 사용하니 다음과 같은 오류가 발생하였다.

E: The repository 'file:/cdrom focal Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

이 오류 내용은 Ubuntu 서버에서 apt를 사용하여 패키지를 업데이트하려고 할 때 특정 소스가 더 이상 유효하지 않거나 접근할 수 없음을 알려주는 것이다. file:/cdrom 디렉토리가 원인인 것으로 보이고 CD나 DVD로부터 패키지를 설치하려고 했을 때 생성되는데, 이제는 그 디스크가 존재하지 않거나 마운트가 해제되었을 가능성이 있었다.

 

 

해결 방법

sudo nano /etc/apt/sources.list

 

 

 

/etc/apt/sources.list 파일 내에서 file:/cdrom 라인을 찾아 주석처리한다. 다음과 같이 앞에 '#'을 추가하면 주석처리가 가능하다.

 

반응형
profile

흔자

@heun_n

즐겁게 개발하고 싶은 사람입니다.