我第一次尝试backports存储库,但6.2不在那里。 它在testing版本库中,所以我添加了testing版本库到/etc/apt/sources.list,做了一个apt-get更新,然后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.
所以基本上,它不想安装我想要的包,并想安装其他的东西。 对我不太有帮助
我想知道你需要什么function的特定版本squeeze 。
包含在jessie的openssh-server(1:6.2p2-6)的依赖关系引用dep:libc6.1(> = 2.16),并且压缩包含在eglibc-source中的libc6.1(2.11.3-4) (2.11.3-4)。 这不是你可以轻易回溯的东西。
试图将此软件包反向移植,因为即使是反向移植软件包的工具链也太旧:
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
但是,您仍然可以尝试构build它并将其安装到/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
将init脚本移植到此版本/位置,请尝试使用其他打包方法,例如checkinstall或fpm ,调整configure选项等。