samba
패키지를 설치하려고 하는데 Debian 3.16.39-1
실행할 때 충족되지 않은 종속성 오류가 발생합니다.
출력은 다음과 같습니다.apt-get install samba
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
samba : Depends: heimdal-hdb-api-8 but it is not installable
Depends: python-dnspython but it is not installable
Depends: python-ntdb but it is not installable
Depends: python-samba but it is not going to be installed
Depends: samba-common-bin (= 2:4.2.14+dfsg-0+deb8u2) but it is not going to be installed
Recommends: attr but it is not installable
Recommends: samba-vfs-modules but it is not going to be installed
출력 오류는 다음과 같습니다.
E: Unable to correct problems, you have held broken packages.
해당 줄에 주석을 달고 /etc/apt/sources.list 문제를 추가했지만 #deb cdrom ..
samba-common 패키지를 성공적으로 설치할 수 있었습니다 .
source.list를 백업하고 변경한 후 다음 명령을 실행했습니다.
apt-get update
apt-get upgrade
apt-get autoclean
apt-get -f install
이것은 /etc/apt/sources.list의 출력입니다:
#
# deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-1 20170116-11:01]/ jessie contrib main
# deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-1 20170116-11:01]/ jessie contrib main
deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib
# jessie-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://ftp.debian.org/debian/ jessie-updates main contrib
# deb-src http://ftp.debian.org/debian/ jessie-updates main contrib
하지만 불행히도 나는 여전히 같은 문제에 직면하고 있습니다. 당신의 도움을 주셔서 감사합니다.
답변1
/etc/apt/sources.list
다음과 같이 편집하세요 .
deb http://httpredir.debian.org/debian jessie main contrib
deb-src http://httpredir.debian.org/debian jessie main contrib
deb http://httpredir.debian.org/debian jessie-updates main contrib
deb-src http://httpredir.debian.org/debian jessie-updates main contrib
deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib
다음 명령을 저장하고 실행하십시오.
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get install samba