1. 程式人生 > >ubuntu 安裝ssh-server時出現錯誤

ubuntu 安裝ssh-server時出現錯誤

sources.list檔案內容如下:


## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://old-releases.ubuntu
.com/ubuntu/ maverick-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://old-releases.ubuntu.com/ubuntu/ maverick universe deb-src http://old-releases.ubuntu
.com/ubuntu/ maverick universe deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://old-releases.ubuntu.com/ubuntu/ maverick multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ maverick multiverse deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse ## Uncomment the following two lines to add software from the 'backports' ## repository. ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. # deb http://us.old-releases.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse # deb-src http://us.old-releases.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse #remastersys for backup installed system deb http://www.remastersys.com/ubuntu maverick main # deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ raring main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ raring main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ raring universe deb-src http://us.archive.ubuntu.com/ubuntu/ raring universe deb http://us.archive.ubuntu.com/ubuntu/ raring-updates universe deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://us.archive.ubuntu.com/ubuntu/ raring multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ raring multiverse deb http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu raring-security main restricted deb-src http://security.ubuntu.com/ubuntu raring-security main restricted deb http://security.ubuntu.com/ubuntu raring-security universe deb-src http://security.ubuntu.com/ubuntu raring-security universe deb http://security.ubuntu.com/ubuntu raring-security multiverse deb-src http://security.ubuntu.com/ubuntu raring-security multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu raring partner # deb-src http://archive.canonical.com/ubuntu raring partner ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. deb http://extras.ubuntu.com/ubuntu raring main deb-src http://extras.ubuntu.com/ubuntu raring main deb http://mirrors.ustc.edu.cn/ubuntu/ saucy main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ saucy-security main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ saucy-updates main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ saucy-proposed main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ saucy-backports main restricted universe multiverse

備份原來的sources.list

cp /etc/apt/sources.list /etc/apt/sources.list.banckup 

替換sources.list

cp /home/hui/Download/sources.list /etc/apt/sources.list

重點內容更新包

sudo apt-get update 

報錯,版本不一致

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:5.3p1-3ubuntu3) but 1:5.3p1-3ubuntu4 is to be installed
E: Broken packages

重點內容輸入如下命令即可:

sudo apt-get install openssh-client=1:5.3p1-3ubuntu3

然後出現下面的執行過程:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  libpam-ssh keychain openssh-blacklist openssh-blacklist-extra
The following packages will be DOWNGRADED:
  openssh-client
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 299 not upgraded.
Need to get 761kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main openssh-client 1:5.3p1-3ubuntu3 [761kB]
Fetched 761kB in 1min 48s (7,003B/s)                                                                         
dpkg: warning: downgrading openssh-client from 1:5.3p1-3ubuntu4 to 1:5.3p1-3ubuntu3.
(Reading database ... 124425 files and directories currently installed.)
Preparing to replace openssh-client 1:5.3p1-3ubuntu4 (using .../openssh-client_1%3a5.3p1-3ubuntu3_i386.deb) ...
Unpacking replacement openssh-client ...
Processing triggers for man-db ...
Setting up openssh-client (1:5.3p1-3ubuntu3) ...

安裝 openssh-server

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 299 not upgraded.
Need to get 285kB of archives.
After this operation, 778kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main openssh-server 1:5.3p1-3ubuntu3 [285kB]
Fetched 285kB in 1min 13s (3,866B/s)                                                                         
Preconfiguring packages ...
Selecting previously deselected package openssh-server.
(Reading database ... 124425 files and directories currently installed.)
Unpacking openssh-server (from .../openssh-server_1%3a5.3p1-3ubuntu3_i386.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Processing triggers for man-db ...
Setting up openssh-server (1:5.3p1-3ubuntu3) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
 * Stopping OpenBSD Secure Shell server sshd                                                           [ OK ] 
ssh start/running, process 10119

檢視啟動

ps -e |grep ssh 

如下:表示啟動成功

root@ubuntu:/etc/apt# ps -e|grep ssh
 8396 ?        00:00:00 ssh-agent
11177 ?        00:00:00 sshd

相關推薦

ubuntu 安裝ssh-server出現錯誤

sources.list檔案內容如下: ## Major bug fix updates produced after the final release of the ## distribution. deb http://old-releases.u

安裝vsphere client出現錯誤2229 無法在SQL查詢中加載表”等錯誤

錯誤2229解決辦法:請按照以下步驟繼續進行升級:找到日誌文件 %TEMP%vim-sso-msi.log搜索上次安裝期間作為緩存文件的 *.mst 文件。例如: c:\Windows \Installer\xxxxx.mst找到該 *.mst 文件並將其刪除。重新安裝vsphere client即可本文出自

安裝SQL Server 2014出現錯誤 “合成活動模板庫(ATL) 規則 失敗”

(方法1)檢視安裝日誌(或者大部分網頁上的建議),其是提醒你重啟系統後再次進行安裝。此方法若不能解決問題,請參照(方法2)。 (方法2)安裝映象支援程式:SQLSUPPORT.MSI(即sqlsupport.msi) 問題 : SQLSUPPORT.MSI究竟在

Ubuntu 安裝SSH Server 服務埠號22

安裝OpenSSH  Ubuntu預設沒有安裝SSH Server,使用以下命令安裝:  sudo apt-get install openssh-server openssh-client  不過Ubuntu預設已經安裝了ssh client。  

ubuntu安裝openssh-server報依賴錯誤的解決方法

系統環境 Linux user #50~14.04.1-Ubuntu SMP Wed Jul 13 01:06:37 UTC 2016 i686 i686 i686 GNU/Linux 報錯問題 執行以下命令安裝openssh-server:

安裝gdb6.8出現錯誤的解決

【1】.././gdb/cli/cli-cmds.c: In function ‘pwd_command’:           .././gdb/cli/cli-cmds.c:323: error: ignoring return value of ‘getcwd’, declared with attri

安裝python模組出現錯誤:UnicodeDecodeError: 'utf-8' codec ...的解決辦法

找到路徑:d:\python\lib\site-packages\pip\compat__init__.py 用編輯器開啟,將裡面的utf-8和utf_8全部替換為gbk 這是因為Windows

Ubuntu安裝ssh出現軟體包 openssh-server 還沒有可供安裝的候選者錯誤

錯誤如下: sudo apt-get install opensshserver正在讀取軟體包列表... 完成正在分析軟體包的依賴關係樹正在讀取狀態資訊... 完成現在沒有可用的軟體包 openssh-server, 但是他被其他的軟體包引用了這可能意味著這個缺失

Ubuntu安裝SSH出現軟體包openssh-server還沒有可供安裝

Ubuntu安裝ssh時出現軟體包 openssh-server 還沒有可供安裝的候選者錯誤 錯誤如下: sudo apt-get install opensshserver正在讀取軟體包列表... 完成正在分析軟體包的依賴關係樹正在讀取狀態資訊... 完成現在沒

ubuntu 安裝Rhytmbox多媒體外掛出現錯誤

ubuntu12.04想要看mp4檔案,系統提示需要安裝Rhytmbox多媒體外掛,安裝時出現錯誤,錯誤程式碼如下: 下列軟體包未滿足的依賴關係: gstreamer0.10-ffmpeg: Depends: libavcodec-extra-53 (>= 4:0.

Ubuntu安裝軟體sudo apt-get install出現錯誤

1.執行命令: sudo apt-get install libncurses5-dev 2.現象: 3.分析: 通過終端安裝程式sudo apt-get install xxx時出錯:

Ubuntu下使用ssh遠端登入出現錯誤提示connect to host localhost port 22:Connection refused

1、Ubuntu下測試ssh時使用ssh localhost 命令,出現錯誤提示connect to host localhost port 22:Connection refused 造成這個錯誤的原因可能是ssh-server未安裝或者未啟動。ubuntu

ubuntu安裝g2o出現錯誤及解決方法

安裝G2O可以用高翔在git上的包,一可以從這裡clone下來git clone https://github.com/RainerKuemmerle/g2o.git 然後進入g2o資料夾,執行cmake編譯 mkdir build cd build

sql server登錄出現錯誤233

.cn config onf tail 數據 blog 圖形界面 mic .com 同事使用SqlServer出現233錯誤。使用Microsoft SQL Server Management Studio連接1次數據庫之後,斷開再次連接,就會出現233錯誤 查看Windo

ubuntu安裝ssh-service出現無法依賴的解決

font gravity pyw ice install 完成 使用 nss 命令 (1)首先先確認下ubuntu系統是否已經安裝ssh(通常ubuntu中默認是安裝的) 通過命令進行查看:$dpkg -l | grep ssh這裏我們可以看到,系統顯示已經安裝了open

Centos7.0系統上使用yum安裝相關包出現KeyboardInterrupt錯誤

目錄 環境 症狀 問題原因 解決方案 相關文件 報錯編碼 環境 系統平臺:Linux x86-64 Red Hat Enterprise Linux 7 版本:4.1.1 症狀   安裝過程中,使用yum命令安裝相關包時,出現Keyboard

安裝.net 服務出現0x80131515錯誤的解決辦法

使用InstallUtil.exe安裝一個用.NET寫的Windows服務時,報錯了,錯誤資訊如下: Exception occurred while initializing the installation: System.IO.FileLoadException: Colud not load fi

Matlab 2016 b 用了license server安裝後打開出現錯誤:License checkout failed. License Manager Error-96

網上很多教程都是用standalone這個license來破解。但我偏要用license_server,於是就有了這個錯誤。那咋辦,又不能重新安裝。一卸一裝足足四個小時。 好在,matlab是僅僅簡單的吧你用的license改了個名字,放到安裝目錄下了。所以我們只需要將你的破解資料夾crac

## win8.1安裝Python出現錯誤,丟失“api-ms-win-crt-process-l1-1-0.dll”檔案

在啟動python的時候碰到了如標題所示的問題,並且在C:\Windows\System32資料夾中找不到“api-ms-win-crt-”系列檔案 嘗試了網上的驅動精靈方法,不好使;還有一個自動更新C++2015的那個軟體,也不好使 解決方法 安裝wind

在scala中連線mysql出現錯誤:Establishing SSL connection without server's identity verification is not recomm

在Scala中連線mysql時,輸入命令: scala> rebuyDF.write.mode("append").jdbc("jdbc:mysql://localhost:3306/dbtaobao", "dbtaobao.rebuy", prop) 出現錯誤如下: Wed No