ssh依赖,指定版本

flynnsin@flynnsin:~$ sudo apt install ssh
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:
 ssh : Depends: openssh-server (>= 1:7.6p1-4)
E: Unable to correct problems, you have held broken packages.
flynnsin@flynnsin:~$ sudo apt install openssh-server
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:
 openssh-server : Depends: openssh-client (= 1:7.6p1-4)
                  Depends: openssh-sftp-server but it is not going to be installed
                  Recommends: ssh-import-id but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt install openssh-client=1:7.6p1-4

flynnsin@flynnsin:~$ sudo apt install openssh-client=1:7.6p1-4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dh-python fonts-wqy-microhei freeglut3 libcdio-cdda2 libcdio-paranoia2 libexpat1-dev libgif7
  libid3tag0 libimlib2 liblept5 libpython3-dev libpython3.6-dev libqgsttools-p1 libqt5designer5
  libqt5help5 libqt5multimedia5-plugins libqt5multimediawidgets5 libtesseract4
  linux-hwe-5.4-headers-5.4.0-84 python-talloc python3-bs4 python3-dev python3-html5lib
  python3-lxml python3-opengl python3-pyqt5 python3-pyqt5.qtmultimedia python3-pyqt5.qtquick
  python3-pyqt5.qtwebkit python3-sip python3-webencodings python3-xlib python3.6-dev
  qml-module-qtgraphicaleffects qml-module-qtquick-controls qml-module-qtquick-layouts
  qml-module-qtquick-window2 tesseract-ocr tesseract-ocr-chi-sim tesseract-ocr-chi-tra
  tesseract-ocr-eng tesseract-ocr-osd tint2
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  keychain libpam-ssh monkeysphere ssh-askpass
The following packages will be DOWNGRADED:
  openssh-client
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 611 kB of archives.
After this operation, 1,024 B disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.aliyun.com/ubuntu bionic/main amd64 openssh-client amd64 1:7.6p1-4 [611 kB]
Fetched 611 kB in 6s (110 kB/s)         
dpkg: warning: downgrading openssh-client from 1:7.6p1-4ubuntu0.5 to 1:7.6p1-4
(Reading database ... 244118 files and directories currently installed.)
Preparing to unpack .../openssh-client_1%3a7.6p1-4_amd64.deb ...
Unpacking openssh-client (1:7.6p1-4) over (1:7.6p1-4ubuntu0.5) ...
Setting up openssh-client (1:7.6p1-4) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
flynnsin@flynnsin:~$ 
flynnsin@flynnsin:~$ 
flynnsin@flynnsin:~$ sudo apt install openssh-server
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值