저는 Linux를 처음 사용하고 요구 사항에 따라 Apache, wget, nfs-common 등의 패키지를 설치하려고 합니다. 그러나 단일 패키지도 설치되지 않았으며 모든 패키지가 다음을 제공합니다.
후보자가 오류로 인해 실패함 -
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package wget is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'wget' has no installation candidate
출력은 다음에서 비롯됩니다.sudo apt update
~$ sudo apt update
Err:1 https://download.docker.com/linux/debian buster InRelease
Temporary failure resolving 'download.docker.com'
Err:2 http://cdn-fastly.deb.debian.org/debian stable InRelease
Temporary failure resolving 'cdn-fastly.deb.debian.org'
Err:3 http://ftp.us.debian.org/debian stable InRelease
Temporary failure resolving 'ftp.us.debian.org'
Err:4 http://deb.debian.org/debian buster-updates InRelease
Temporary failure resolving 'deb.debian.org'
Err:5 http://cdn-fastly.deb.debian.org/debian-security stable/updates InRelease
Temporary failure resolving 'cdn-fastly.deb.debian.org'
Err:6 http://ftp.us.debian.org/debian stable-updates InRelease
Temporary failure resolving 'ftp.us.debian.org'
Err:7 http://deb.debian.org/debian stable InRelease
Temporary failure resolving 'deb.debian.org'
Err:8 http://deb.debian.org/debian stable-updates InRelease
Temporary failure resolving 'deb.debian.org'
Err:9 http://deb.debian.org/debian-security stable/updates InRelease
Temporary failure resolving 'deb.debian.org'
Ign:10 cdrom://[Debian GNU/Linux 10.9.0 _Buster_ - Official amd64 NETINST 20210327-10:38] buster InRelease
Err:11 cdrom://[Debian GNU/Linux 10.9.0 _Buster_ - Official amd64 NETINST 20210327-10:38] 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
Err:12 http://security.debian.org/debian-security buster/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:13 http://security.debian.org stable/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:14 http://ftp.debian.org/debian buster-backports InRelease
Temporary failure resolving 'ftp.debian.org'
Err:15 https://packages.debian.org/stable/web buster InRelease
Temporary failure resolving 'packages.debian.org'
Reading package lists... Done
E: The repository 'cdrom://[Debian GNU/Linux 10.9.0 _Buster_ - Official amd64 NETINST 20210327-10:38] 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.
다운로드 패키지의 source.list도 업데이트했지만 실패했습니다.
세부sources.list
# deb cdrom:[Debian GNU/Linux 10.9.0 _Buster_ - Official amd64 NETINST 20210327-10:38]/ buster main
deb cdrom:[Debian GNU/Linux 10.9.0 _Buster_ - Official amd64 NETINST 20210327-10:38]/ buster main
# Line commented out by installer because it failed to verify:
deb http://security.debian.org/debian-security buster/updates main
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/debian-security buster/updates main
# buster-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster-updates main
# new custom url
deb [arch=amd64] https://download.docker.com/linux/debian buster stable
# custom url 2 for debian
deb https://packages.debian.org/stable/web/ buster web
# custm url
deb http://cdn-fastly.deb.debian.org/debian stable main
deb http://cdn-fastly.deb.debian.org/debian-security stable/updates main
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#
###### Debian Main Repos
deb http://deb.debian.org/debian/ stable main contrib
deb-src http://deb.debian.org/debian/ stable main contrib
deb http://deb.debian.org/debian/ stable-updates main contrib
deb-src http://deb.debian.org/debian/ stable-updates main contrib
deb http://deb.debian.org/debian-security stable/updates main
deb-src http://deb.debian.org/debian-security stable/updates main
deb http://ftp.debian.org/debian buster-backports main
deb-src http://ftp.debian.org/debian buster-backports main
# Debian Ressources
deb http://ftp.us.debian.org/debian/ stable main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stable main contrib non-free
deb http://ftp.us.debian.org/debian/ stable-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stable-updates main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free
deb-src http://security.debian.org/ stable/updates main contrib non-free
운영 체제: Debian GNU/Linux 10(버스터)
답변1
귀하의 sources.list
.또한 CDROM 저장소를 비활성화하십시오. source.list를 수정하려면 다음 명령을 사용하십시오(여기서 문서를 터미널에 복사하여 붙여넣기).
cat <<EOF |sudo tee /etc/apt/sources.list
deb [arch=amd64] https://download.docker.com/linux/debian buster stable
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
EOF
그런 다음 다음을 실행하십시오.
echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" |sudo tee -a /etc/resolv.conf
sudo apt update
sudo apt install wget
답변2
apt install *
패키지 관리자 명령을 사용할 때 소스 목록이 구문 분석되지 않아 오류가 발생합니다 . 동일한 링크가 해결되었을 때 혼란이 발생했습니다.curl -I "http://..."
따라서 패키지 관리자가 apt
필요한 패키지를 다운로드할 수 있도록 프록시 설정을 구성한 후,
APT 패키지 관리자에 대한 프록시 설정
$ sudo nano /etc/apt/apt.conf.d/80proxy
Acquire::http::proxy "http://10.10.1.10:8080/";
Acquire::https::proxy "https://10.10.1.10:8080/";
Acquire::ftp::proxy "ftp://10.10.1.10:8080/";
여기있어협회나는 이것을 프록시 설정과 구성을 이해하는 데 사용합니다.
감사합니다 @GAD3R @Panki @telcoM
여러분의 댓글과 답변을 통해 팁과 지침을 얻었습니다 :)