vm 下开启SSH 的错误

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
Oreborn
帖子: 5
注册时间: 2011-03-31 15:38

vm 下开启SSH 的错误

#1

帖子 Oreborn » 2011-03-31 15:47

我在VM7.1上安装了10.10版本,想开启SSH 服务 以便从windows访问,在安装过程中出现以下错误。请大虾看看 谢谢!

root@ubuntu:~# apt-get install openssh-server openssh-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssh-client is already the newest version.
Suggested packages:
rssh molly-guard openssh-blacklist openssh-blacklist-extra
The following NEW packages will be installed:
openssh-server
0 upgraded, 1 newly installed, 0 to remove and 285 not upgraded.
2 not fully installed or removed.
Need to get 0B/302kB of archives.
After this operation, 819kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 121798 files and directories currently installed.)
Unpacking openssh-server (from .../openssh-server_1%3a5.5p1-4ubuntu5_i386.deb) ...
ssh config: Aborting because ssh/use_old_init_script = false
dpkg: error processing /var/cache/apt/archives/openssh-server_1%3a5.5p1-4ubuntu5_i386.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/openssh-server_1%3a5.5p1-4ubuntu5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu:~#
Oreborn
帖子: 5
注册时间: 2011-03-31 15:38

Re: vm 下开启SSH 的错误

#2

帖子 Oreborn » 2011-03-31 16:27

刷一下 在线等
Oreborn
帖子: 5
注册时间: 2011-03-31 15:38

Re: vm 下开启SSH 的错误

#3

帖子 Oreborn » 2011-04-01 21:25

这个错误真的很奇怪啊
我在网上搜了几天了 都没有类似的问题
希望有高手出来帮忙看看
漫游世界
帖子: 2
注册时间: 2011-01-08 15:43

Re: vm 下开启SSH 的错误

#4

帖子 漫游世界 » 2011-04-03 23:16

:em01 首先sudo apt-get update 和upgrade 让系统全新后然后重新安装。安装的时候有时候需要一些依赖包~
Oreborn
帖子: 5
注册时间: 2011-03-31 15:38

Re: vm 下开启SSH 的错误

#5

帖子 Oreborn » 2011-04-06 21:51

做了update和upgrade 还是一样

reborn@ubuntu:~$ sudo apt-get upgrade
[sudo] password for reborn:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
ssh : Depends: openssh-server but it is not installed
E: Unmet dependencies. Try using -f.
reborn@ubuntu:~$ sudo apt-get update
Get:1 http://security.ubuntu.com maverick-security Release.gpg [198B]
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Get:2 http://us.archive.ubuntu.com maverick Release.gpg [198B]
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Get:3 http://extras.ubuntu.com maverick Release.gpg [72B]
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en_US
Get:4 http://security.ubuntu.com maverick-security Release [31.4kB]
Get:5 http://us.archive.ubuntu.com maverick-updates Release.gpg [198B]
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Hit http://extras.ubuntu.com maverick Release
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick Release
Hit http://extras.ubuntu.com maverick/main Sources
Get:6 http://us.archive.ubuntu.com maverick-updates Release [31.4kB]
Get:7 http://security.ubuntu.com maverick-security/main Sources [35.2kB]
Hit http://extras.ubuntu.com maverick/main i386 Packages
Get:8 http://security.ubuntu.com maverick-security/restricted Sources [14B]
Get:9 http://security.ubuntu.com maverick-security/universe Sources [13.4kB]
Get:10 http://security.ubuntu.com maverick-security/multiverse Sources [649B]
Get:11 http://security.ubuntu.com maverick-security/main i386 Packages [121kB]
Hit http://us.archive.ubuntu.com maverick/main Sources
Hit http://us.archive.ubuntu.com maverick/restricted Sources
Hit http://us.archive.ubuntu.com maverick/universe Sources
Hit http://us.archive.ubuntu.com maverick/multiverse Sources
Hit http://us.archive.ubuntu.com maverick/main i386 Packages
Hit http://us.archive.ubuntu.com maverick/restricted i386 Packages
Hit http://us.archive.ubuntu.com maverick/universe i386 Packages
Hit http://us.archive.ubuntu.com maverick/multiverse i386 Packages
Get:12 http://us.archive.ubuntu.com maverick-updates/main Sources [95.5kB]
Get:13 http://security.ubuntu.com maverick-security/restricted i386 Packages [14B]
Get:14 http://security.ubuntu.com maverick-security/universe i386 Packages [54.9kB]
Get:15 http://security.ubuntu.com maverick-security/multiverse i386 Packages [1,660B]
Get:16 http://us.archive.ubuntu.com maverick-updates/restricted Sources [778B]
Get:17 http://us.archive.ubuntu.com maverick-updates/universe Sources [39.0kB]
Get:18 http://us.archive.ubuntu.com maverick-updates/multiverse Sources [1,496B]
Get:19 http://us.archive.ubuntu.com maverick-updates/main i386 Packages [265kB]
Get:20 http://us.archive.ubuntu.com maverick-updates/restricted i386 Packages [1,797B]
Get:21 http://us.archive.ubuntu.com maverick-updates/universe i386 Packages [113kB]
Get:22 http://us.archive.ubuntu.com maverick-updates/multiverse i386 Packages [2,844B]
Fetched 810kB in 29s (27.3kB/s)
Reading package lists... Done
reborn@ubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
ssh : Depends: openssh-server but it is not installed
E: Unmet dependencies. Try using -f.
reborn@ubuntu:~$ sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
rssh molly-guard openssh-blacklist openssh-blacklist-extra
The following NEW packages will be installed:
openssh-server
0 upgraded, 1 newly installed, 0 to remove and 287 not upgraded.
2 not fully installed or removed.
Need to get 0B/302kB of archives.
After this operation, 819kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 121798 files and directories currently installed.)
Unpacking openssh-server (from .../openssh-server_1%3a5.5p1-4ubuntu5_i386.deb) ...
ssh config: Aborting because ssh/use_old_init_script = false
dpkg: error processing /var/cache/apt/archives/openssh-server_1%3a5.5p1-4ubuntu5_i386.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/openssh-server_1%3a5.5p1-4ubuntu5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
reborn@ubuntu:~$
Oreborn
帖子: 5
注册时间: 2011-03-31 15:38

Re: vm 下开启SSH 的错误

#6

帖子 Oreborn » 2011-04-07 20:08

who can help on this thank advance.
amend.wjl
帖子: 1
注册时间: 2012-09-27 10:08
系统: xp

Re: vm 下开启SSH 的错误

#7

帖子 amend.wjl » 2012-09-27 10:14

1:apt-get remove openssh-client
2:rm-rf /etc/init.d/ssh
3:apt-get install -f
回复