如何在 Debian Squeeze 上安装 openssh v6.2?

如何在 Debian Squeeze 上安装 openssh v6.2?

我首先尝试了 backports 存储库,但 6.2 不在其中。但它在测试存储库中,因此我将测试存储库添加到 /etc/apt/sources.list,执行了 apt-get update,然后执行了 apt-get install openssh-server openssh-client 并得到:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 libc6-dev : Breaks: gcc-4.4 (< 4.4.6-4) but 4.4.5-8 is to be installed
E: Broken packages

gcc 和 libc6-dev 不是 openssh-server 或 openssh-client 的依赖项,那么为什么它会抱怨它需要 libc6-dev?我该如何解决这个问题?

我的理解是“sudo aptitude install -f --safe-resolver openssh-server openssh-client”将尝试解决所有依赖关系,因此我尝试了一下,但得到:

Resolving dependencies...                
The following packages have been kept back:
  openssh-client openssh-server 
The following NEW packages will be installed:
  gcc-4.8-base{a} libgmp10{a} multiarch-support{a} 
The following packages will be REMOVED:
  libgmp3c2{u} 
The following packages will be upgraded:
  cpp-4.4 g++-4.4 gcc-4.4 gcc-4.4-base lib32gcc1 lib32stdc++6 libc-dev-bin libc6 libc6-dev libc6-i386 libgcc1 libgomp1 libmpfr4 libstdc++6 libstdc++6-4.4-dev locales make openssh-blacklist openssh-blacklist-extra 
19 packages upgraded, 3 newly installed, 1 to remove and 277 not upgraded.
Need to get 35.7 MB of archives. After unpacking 3,334 kB will be used.
Do you want to continue? [Y/n/?] n
Abort.

所以基本上,它不想安装我想要的软件包,而是想安装其他东西。对我来说没什么帮助。

答案1

我想知道您需要这个特定版本的什么功能squeeze

的依赖关系openssh 服务器 (1:6.2p2-6),包含在 中jessie,引用 dep: libc6.1 (>= 2.16),并且squeeze 船舶 libc6.1 (2.11.3-4)包含在 eglibc-source (2.11.3-4) 中。这不是可以轻松反向移植的东西。

尝试将该软件包反向移植到 squeeze,但失败了,因为反向移植软件包的工具链也太旧了:

root@squeeze-chroot:~/openssh-6.2p2# apt-get build-dep openssh
Reading package lists... Done
Building dependency tree... Done
E: Build-Depends dependency for openssh cannot be satisfied because no available versions of package debhelper can satisfy version requirements

但是,您仍然可以尝试构建它并将其安装在/usr/local树中。您需要在以下行中添加一行sources.list

deb-src http://ftp.XX.debian.org/debian squeeze main

并获取所有依赖项:

# apt-get build-dep openssh

之后,通常./configure && make && make install会将软件安装到/usr/local树中:

root@squeeze-chroot:~# /usr/local/sbin/sshd -X
sshd: illegal option -- X
OpenSSH_6.2p2, OpenSSL 0.9.8o 01 Jun 2010

您可以将初始化脚本移植到此版本/位置,尝试其他打包方法(如checkinstall或)fpm,调整configure选项等。

相关内容