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

你可能感兴趣的:(嵌入式linux工具,ssh,python,linux)