APT - Como corrigir a instalação do pacote “samba”

2

Estou tentando instalar o samba package em Debian 3.16.39-1 , mas estou executando um erro de dependências não atendidas.

Este é o resultado de saída de: 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

Este é o erro de saída:

E: Unable to correct problems, you have held broken packages.

Acredito que inclua um problema com /etc/apt/sources.list depois de comentar a linha #deb cdrom .. , mas consegui instalar com êxito o pacote samba-common.

Após o backup e alterar o meu sources.list eu corro o seguinte comando:

apt-get update
apt-get upgrade
apt-get autoclean
apt-get -f install

Esta é a saída do /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

Mas infelizmente ainda estou enfrentando o mesmo problema. Obrigado pela sua ajuda.

    
por Alexandre Roux 08.03.2017 / 16:31

1 resposta

2

Edite seu /etc/apt/sources.list da seguinte forma:

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

Salve e execute o seguinte comando:

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade

sudo apt-get install samba
    
por 08.03.2017 / 17:27