如何在我的服务器上安装openssh-server?

弗里曼

我想在服务器上安装openssh-server,但它显示了我:

apt-get install openssh-server

Reading package lists... Done
Building dependency tree       
Reading state information... Done
openssh-server is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 upstart : Depends: ifupdown (>= 0.6.10ubuntu5)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

当我尝试 apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  python-numpy python-gobject-2 python-gobject-dev libpython2.7 docbook-xml
  docbook-xsl python-dev libgirepository-1.0-1 liblapack3gf libffi-dev
  libquadmath0 libffi5 python-gi libssl-dev python2.6-dev libglade2-0
  libblas3gf gir1.2-glib-2.0 python-gobject sgml-data libgfortran3
  python2.7-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  ifupdown
Suggested packages:
  ppp rdnssd
The following packages will be upgraded:
  ifupdown
1 upgraded, 0 newly installed, 0 to remove and 325 not upgraded.
9 not fully installed or removed.
Need to get 0 B/48.3 kB of archives.
After this operation, 43.0 kB disk space will be freed.
Do you want to continue [Y/n]? y
y
Reading changelogs... Done
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
dpkg: dependency problems prevent configuration of plymouth:
 plymouth depends on upstart-job; however:
  Package upstart-job is not installed.
  Package upstart which provides upstart-job is not configured yet.
 plymouth depends on udev (>= 166-0ubuntu4); however:
  Package udev is not configured yet.
dpkg: error processing plymouth (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mountall:
 mountall depends on udev; however:
  Package udev is not configured yet.
 mountall depends on plymouth; however:
  Package plymouth is not configured yet.
dpkg: error processing mountall (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of initscripts:
 initscripts depends on upstart; however:
  Package upstart is not configured yet.
 initscripts depends on mountall (>= 2.28); however:
  Package mountall is not configured yet.
dpkg: error processing initscripts (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 plymouth
 mountall
 initscripts
E: Sub-process /usr/bin/dpkg returned an error code (1)

因此,我尝试使用安装deb文件,dpkg -i --force-overwrite但再次向我显示错误。

lsb_release -a

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 6.0.10 (squeeze)
Release:    6.0.10
Codename:   squeeze

apt-cache策略

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://ftp.debian.org/debian/ jessie-backports/main Translation-en
 100 http://ftp.debian.org/debian/ jessie-backports/main i386 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
     origin ftp.debian.org
 100 http://ftp.debian.org/debian/ jessie-backports/main amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
     origin ftp.debian.org
 500 http://deb.debian.org/debian-security/ stable/updates/main Translation-en
 500 http://deb.debian.org/debian-security/ stable/updates/main i386 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
     origin deb.debian.org
 500 http://deb.debian.org/debian-security/ stable/updates/main amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable-updates/non-free Translation-en
 500 http://deb.debian.org/debian/ stable-updates/main Translation-en
 500 http://deb.debian.org/debian/ stable-updates/contrib Translation-en
 500 http://deb.debian.org/debian/ stable-updates/non-free i386 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=non-free
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable-updates/contrib i386 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=contrib
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable-updates/main i386 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=main
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable-updates/non-free amd64 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=non-free
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable-updates/contrib amd64 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=contrib
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=main
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable/non-free Translation-en
 500 http://deb.debian.org/debian/ stable/main Translation-fr
 500 http://deb.debian.org/debian/ stable/main Translation-en
 500 http://deb.debian.org/debian/ stable/contrib Translation-en
 500 http://deb.debian.org/debian/ stable/non-free i386 Packages
     release v=8.8,o=Debian,a=stable,n=jessie,l=Debian,c=non-free
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable/contrib i386 Packages
     release v=8.8,o=Debian,a=stable,n=jessie,l=Debian,c=contrib
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable/main i386 Packages
     release v=8.8,o=Debian,a=stable,n=jessie,l=Debian,c=main
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable/non-free amd64 Packages
     release v=8.8,o=Debian,a=stable,n=jessie,l=Debian,c=non-free
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable/contrib amd64 Packages
     release v=8.8,o=Debian,a=stable,n=jessie,l=Debian,c=contrib
     origin deb.debian.org
 500 http://deb.debian.org/debian/ stable/main amd64 Packages
     release v=8.8,o=Debian,a=stable,n=jessie,l=Debian,c=main
     origin deb.debian.org
Pinned packages:

任何的想法 ?

萨比·巴克(Sabe Barker)

您可能需要尝试清除安装并进行一些清理。

尝试:

sudo apt-get remove openssh-server openssh-client --purge && sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get update

如果您没有任何理由不升级软件包,请尝试:

sudo apt-get dist-upgrade

然后,您可以尝试再次安装软件包,以查看是否可以解决问题:

sudo apt-get install openssh-server openssh-client

编辑:

注意ubuntu该错误中引用了:upstart : Depends: ifupdown (>= 0.6.10ubuntu5)

检查您的sources.list文件和sources.list.d目录文件,以获取对ubuntu如果有注释掉,然后再次尝试上述命令。

如果安装了任何ubuntuPPA或ubuntu.deb软件包,这也会引起问题。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

如何在openSUSE上安装openssh-server?

来自分类Dev

如何在我的服务器(Ubuntu server 16.04)上删除无用的ssh密钥并生成新的ssh密钥

来自分类Dev

如何在需要“服务器重启”的Docker容器(Windows 2016 Server)上安装Windows功能?

来自分类Dev

如何安装罗技媒体服务器(Squeezebox Server)?

来自分类Dev

sFTP可在运行Ubuntu Server的新文件服务器上运行-我是否应该安装FTP服务器(例如vsftpd)?

来自分类Dev

如何在调用SQL Server数据库调用的Web服务器上运行AngularJS

来自分类Dev

如何在webpack-dev-server和express服务器上重新加载模块?

来自分类Dev

如何在 SQL Server 的服务器审计上添加多个过滤器?

来自分类Dev

如何在我自己的服务器上安装FreeCodeCamp?

来自分类Dev

如何在我自己的服务器上安装FreeCodeCamp?

来自分类Dev

如何在我的服务器上安装 freegeoip

来自分类Dev

Windows 8.1上的“启动服务器”上的MySQL Server 5.7.7安装卡住了

来自分类Dev

如何在17.10服务器上获取netplan以与使用MAC地址保留的Windows Server DHCP服务器一起使用?

来自分类Dev

我应该在Windows Server 2012 R2上使用wampserver还是在服务器上安装apache,mysql等

来自分类Dev

安装nfs-common后,我得到“无法解析服务器nfs-server”

来自分类Dev

发布到IIS。省略在服务器上安装.NET Core Windows Server Hosting捆绑包

来自分类Dev

需要在当前的Linux服务器上安装Windows Server

来自分类Dev

尝试在Linux服务器上安装dblib以尝试与SQL Server连接confony2

来自分类Dev

如何在Ubuntu 14.04桌面版上安装openssh-server,tcsh,autofs和ypbind?

来自分类Dev

Windows Server 2016上的SSH登录-“服务器拒绝了我们的密钥

来自分类Dev

Windows Server 2012的服务器核心安装

来自分类Dev

如何使节点服务器应用程序在Windows Server上运行

来自分类Dev

如何使用python(python -m http.server)在本地服务器上打开html文件?

来自分类Dev

如何在SQL Server中执行跨服务器插入?

来自分类Dev

如何在Ant Media Server中使用TURN服务器?

来自分类Dev

如何在Nginx中获取server_name用作节点中的服务器变量

来自分类Dev

LAMP服务器是否需要Ubuntu Server,或者如果在Ubuntu Desktop上安装LAMP,是否会中断?

来自分类Dev

Magento我如何在灯泡服务器上安装oAuth?(Ubuntu Os)

来自分类Dev

远程服务器上的Server.MapPath

Related 相关文章

  1. 1

    如何在openSUSE上安装openssh-server?

  2. 2

    如何在我的服务器(Ubuntu server 16.04)上删除无用的ssh密钥并生成新的ssh密钥

  3. 3

    如何在需要“服务器重启”的Docker容器(Windows 2016 Server)上安装Windows功能?

  4. 4

    如何安装罗技媒体服务器(Squeezebox Server)?

  5. 5

    sFTP可在运行Ubuntu Server的新文件服务器上运行-我是否应该安装FTP服务器(例如vsftpd)?

  6. 6

    如何在调用SQL Server数据库调用的Web服务器上运行AngularJS

  7. 7

    如何在webpack-dev-server和express服务器上重新加载模块?

  8. 8

    如何在 SQL Server 的服务器审计上添加多个过滤器?

  9. 9

    如何在我自己的服务器上安装FreeCodeCamp?

  10. 10

    如何在我自己的服务器上安装FreeCodeCamp?

  11. 11

    如何在我的服务器上安装 freegeoip

  12. 12

    Windows 8.1上的“启动服务器”上的MySQL Server 5.7.7安装卡住了

  13. 13

    如何在17.10服务器上获取netplan以与使用MAC地址保留的Windows Server DHCP服务器一起使用?

  14. 14

    我应该在Windows Server 2012 R2上使用wampserver还是在服务器上安装apache,mysql等

  15. 15

    安装nfs-common后,我得到“无法解析服务器nfs-server”

  16. 16

    发布到IIS。省略在服务器上安装.NET Core Windows Server Hosting捆绑包

  17. 17

    需要在当前的Linux服务器上安装Windows Server

  18. 18

    尝试在Linux服务器上安装dblib以尝试与SQL Server连接confony2

  19. 19

    如何在Ubuntu 14.04桌面版上安装openssh-server,tcsh,autofs和ypbind?

  20. 20

    Windows Server 2016上的SSH登录-“服务器拒绝了我们的密钥

  21. 21

    Windows Server 2012的服务器核心安装

  22. 22

    如何使节点服务器应用程序在Windows Server上运行

  23. 23

    如何使用python(python -m http.server)在本地服务器上打开html文件?

  24. 24

    如何在SQL Server中执行跨服务器插入?

  25. 25

    如何在Ant Media Server中使用TURN服务器?

  26. 26

    如何在Nginx中获取server_name用作节点中的服务器变量

  27. 27

    LAMP服务器是否需要Ubuntu Server,或者如果在Ubuntu Desktop上安装LAMP,是否会中断?

  28. 28

    Magento我如何在灯泡服务器上安装oAuth?(Ubuntu Os)

  29. 29

    远程服务器上的Server.MapPath

热门标签

归档