Por que instalar o openssh-server removeria o openssh-client?

1

Eu enfrento a seguinte situação em uma máquina com 64bit Mint 17.3 Canela:

$ sudo apt-get instala o openssh-server

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  openssh-client:i386 openssh-sftp-server
Suggested packages:
  ssh-askpass:i386 libpam-ssh:i386 keychain:i386 monkeysphere:i386 rssh
  molly-guard monkeysphere
Recommended packages:
  ncurses-term ssh-import-id
The following packages will be REMOVED:
  openssh-client
The following NEW packages will be installed:
  openssh-client:i386 openssh-server openssh-sftp-server
0 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
Need to get 928 kB of archives.
After this operation, 1 418 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

Eu não entendo porque ele quer remover o openssh-client de 64 bits e instalar 32bits.

/etc/apt/sources.list

#deb cdrom:[Linux Mint 17.3 _Rosa_ - Release amd64 20151115]/ trusty contrib main non-free
A pasta

/etc/apt/sources.list.d contém muitos PPAs:

doublecmd.list
esmska.list
getdeb.list
google-chrome.list
graphics-drivers-ppa-trusty.list
inkscape_dev-stable-trusty.list
mono-xamarin.list
nijel-phpmyadmin-trusty.list
n-muench-programs-ppa2-trusty.list
official-package-repositories.list
official-source-repositories.list
ondrej-php-trusty.list
otto-kesselgulasch-gimp-trusty.list
playonlinux.list
spideroakone.list
spotify.list
steam.list
strukturag-libde265-trusty.list
ubuntu-sdk-team-ppa-trusty.list
ubuntu-touch-coreapps-drivers-daily-trusty.list
unit193-encryption-trusty.list
videolan-master-daily-trusty.list
virtualbox.list
wfg-0ad-trusty.list
wine.list

apt-get update

Reading package lists... Done  

não vejo erros.

apt-get -o Depurar :: pkgProblemResolver = true instalar o openssh-server

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following extra packages will be installed:
  openssh-client:i386 openssh-sftp-server
Suggested packages:
  ssh-askpass:i386 libpam-ssh:i386 keychain:i386 monkeysphere:i386 rssh
  molly-guard monkeysphere
Recommended packages:
  ncurses-term ssh-import-id
The following packages will be REMOVED:
  openssh-client
The following NEW packages will be installed:
  openssh-client:i386 openssh-server openssh-sftp-server
0 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
Need to get 928 kB of archives.
After this operation, 1,418 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort. 

política do apt-cache openssh-client openssh-server

openssh-client:
  Installed: 1:6.6p1-2ubuntu2.6
  Candidate: 1:6.6p1-2ubuntu2.6
  Version table:
 *** 1:6.6p1-2ubuntu2.6 0
        100 /var/lib/dpkg/status
     1:6.6p1-2ubuntu2.4 0
        500 http://archive.ubuntu.mirror.dkm.cz/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1:6.6p1-2ubuntu1 0
        500 http://archive.ubuntu.mirror.dkm.cz/ trusty/main amd64 Packages
openssh-server:
  Installed: (none)
  Candidate: 1:6.6p1-2ubuntu2.4
  Version table:
     1:6.6p1-2ubuntu2.4 0
        500 http://archive.ubuntu.mirror.dkm.cz/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1:6.6p1-2ubuntu1 0
        500 http://archive.ubuntu.mirror.dkm.cz/ trusty/main amd64 Packages
    
por Vlastimil 27.03.2016 / 10:31

1 resposta

4

Por sua apt-cache policy output, você tem o openssh-client 1:6.6p1-2ubuntu2.6 instalado, mas isso não corresponde a nenhum URL e o número da versão não é igual ao número da versão do servidor. Os pacotes Debian ssh requerem que as versões cliente e servidor correspondam exatamente.

Portanto, fica claro por que apt deseja remover a versão amd64 de openssh-client que você instalou. O que é menos claro é porque ele está tentando instalar a versão i386 de openssh-client .

Então, faça

apt-get purge openssh-client

Em seguida, instale os dois openssh-client e openssh-server .

apt-get install openssh-client openssh-server

PS: Explicação de Julian Andres Klode em #debian-apt .

juliank> faheem: It would have to downgrade the amd64 version, which is forbidden. But the :i386 one is apparently allowed to satisfy dependencies on other architectures (Multi-Arch: foreign), so it can install that instead.

Satisfazer dependências em outros archs parece um pouco maluco, mas suponho que um cliente i386 possa funcionar com um servidor amd64.

    
por 27.03.2016 / 11:13