debian sudo apt-get update error

dalonn98·2022년 5월 21일
0

linux

목록 보기
1/3
무시:1 cdrom://[Official Debian GNU/Linux Live 11.3.0 gnome 2022-03-26T16:48] bullseye InRelease
오류:2 cdrom://[Official Debian GNU/Linux Live 11.3.0 gnome 2022-03-26T16:48] bullseye Release
  이 CD를 APT에서 인식하려면 apt-cdrom을 사용하십시오.  apt-get update로는 새 CD를 추가할 수 없습니다.
패키지 목록을 읽는 중입니다... 완료
E: The repository 'cdrom://[Official Debian GNU/Linux Live 11.3.0 gnome 2022-03-26T16:48] bullseye Release' does not have 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.

데비안 설치 후 apt-get update를 하려고 했더니 오류 발생

/etc/apt/sources.list
이 파일에서 오류가 발생하는 부분 주석 처리를 하라고 해서 수정 후 다시 실행했는데 안됨

apt가 패키지를 가져 올 수 있는 위치 정보가 있어야 하는데 내 파일은 저 부분만 존재해서
주석 처리 후 아무것도 가져올 수 없었음 (https://zetawiki.com/wiki//etc/apt/sources.list)

https://wiki.debian.org/SourcesList

debian source.list에서 non-free(무선랜에 필요한 파일이 없다고 떠서 이걸로 설치했었음) sources.list 내용 그대로 붙여넣기 후 명령 실행하니 해결!!

/etc/apt/sources.list 수정하기

deb <http://deb.debian.org/debian> bullseye main contrib non-free
deb-src <http://deb.debian.org/debian> bullseye main contrib non-free

deb <http://deb.debian.org/debian-security/> bullseye-security main contrib non-free
deb-src <http://deb.debian.org/debian-security/> bullseye-security main contrib non-free

deb <http://deb.debian.org/debian> bullseye-updates main contrib non-free
deb-src <http://deb.debian.org/debian> bullseye-updates main contrib non-free
profile
Cloud Engineer / interested in solutions architect & devops

0개의 댓글