데비안 10 적절한 업데이트 문제

데비안 10 적절한 업데이트 문제

방금 데비안 버스터를 새로 설치했는데 APT를 사용하는 데 문제가 있습니다.

달려가서 sudo apt update이걸 얻었어

Ign:1 cdrom://[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 NETINST 20190908-01:07] buster InRelease
Err:2 cdrom://[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 NETINST 20190908-01:07] buster Release
 Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 http://deb.debian.org/debian buster InRelease              
Ign:4 http://deb.debian.org/debian buster/updates InRelease      
Hit:5 http://deb.debian.org/debian buster-updates InRelease
Err:6 http://deb.debian.org/debian buster/updates Release
  404  Not Found [IP: 151.101.132.204 80]
Reading package lists... Done
E: The repository 'cdrom://[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 NETINST 20190908-01:07] buster 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.
E: The repository 'http://deb.debian.org/debian buster/updates 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.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:4
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:4
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:4
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:4
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:4
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:4
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:4
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:4

내 소스 목록의 내용은 다음과 같습니다.

    # 

deb cdrom:[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 NETINST 20190908-01:07]/ buster main
deb cdrom:[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 NETINST 20190908-01:07]/ buster main

deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main

deb http://deb.debian.org/debian/ buster/updates main
deb-src http://deb.debian.org/debian/ buster/updates main

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster-updates main

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

여기서 무엇이 잘못되었는지 정말 이해가 되지 않습니다. 이것이 내 파일 내에 새로 설치될 때 제공되는 기본 소스라면 저는 아무것도 하지 않은 것입니다.

답변1

라인 에 주석을 달고 deb cdrom:라인에 주석을 달거나 제거합니다.

deb http://deb.debian.org/debian/ buster/updates main
deb-src http://deb.debian.org/debian/ buster/updates main

그리고 그것들을 다음으로 대체하십시오.

deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main

이 저장소가 변경되었는지는 모르겠지만 다음에서 가져온 것입니다.데비안 위키.

아니면 복사해서 붙여넣으세요예제 소스.목록위키에서 보면 이것은 부가 기능 contribnon-free저장소가 있는 것입니다.

deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free

deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free

다시 실행하십시오 sudo apt update.

답변2

업그레이드할 때 이 문제가 발생했습니다.Debian 10 Buster로의 Debian 9 확장,내 질문은중복 오류를 백포트하는 중:

Debian 10 백포트 중복 버그

해결책:

  • 중복된 줄이 발견되었습니다 cat /etc/apt/sources.list.d/cat /etc/apt/sources.list.d/buster-backports.list ("buster-backports.list"를 "YOUR-DOUBLY-CONFIGURED-FILENAME"으로 교체).
  • 다음을 사용하여 sudo gedit /etc/apt/sources.list소스 목록을 엽니다.#
  • 파일을 저장하고 시스템을 업데이트하세요.sudo apt update

가는 것이 좋을 것입니다. 이것리눅스 민트 포럼제가 답을 찾는 데 도움이 되었고, 여러분에게도 도움이 될 수 있습니다.

답변3

유사한 오류, i386, Debian-10-server, 데스크탑 환경 없음. 데스크톱 환경의 다른 컴퓨터에서도 문제 없이 유사한 설치를 수행했습니다. 방금 작업 시스템과 일치하도록 /etc/apt/sources.list를 편집했습니다.

root@svr2:/etc/apt# cat sources.list
# 

# deb cdrom:[Debian GNU/Linux 10.5.0 _Buster_ - Official i386 NETINST 20200801-13:11]/ buster main

#deb cdrom:[Debian GNU/Linux 10.5.0 _Buster_ - Official i386 NETINST 20200801-13:11]/ buster main

deb http://mirror.cc.columbia.edu/debian/ buster main
deb-src http://mirror.cc.columbia.edu/debian/ buster main

deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'
deb http://mirror.cc.columbia.edu/debian/ buster-updates main
deb-src http://mirror.cc.columbia.edu/debian/ buster-updates main
root@svr2:/etc/apt# apt-get update
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Hit:2 http://mirror.cc.columbia.edu/debian buster InRelease
Get:3 http://mirror.cc.columbia.edu/debian buster-updates InRelease [51.9 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main Sources [152 kB]
Fetched 269 kB in 2s (177 kB/s)
Reading package lists... Done

관련 정보