You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 17.04 Mate环境下无法通过APT/GDebi安装openssh-server

Fixing OpenSSH Server Installation on Ubuntu 17.04 Mate

Hey there, let's sort out this OpenSSH server issue you're facing. The root problem here is that Ubuntu 17.04 (Zesty Zapus) is no longer supported—it reached end-of-life (EOL) back in January 2018, so the default package repositories are no longer hosted on the main Ubuntu servers. That's why you're getting the "no installation candidate" error and can't find the 7.4p1 .deb files.

Here's how to get it working:

Step 1: Switch to Ubuntu's Old Releases Repository

First, we need to point your system to the archive for outdated Ubuntu versions:

  • Back up your current sources list (just in case):
    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
    
  • Open the sources list file with a text editor:
    sudo nano /etc/apt/sources.list
    
  • Replace every instance of archive.ubuntu.com and security.ubuntu.com with old-releases.ubuntu.com. For example, change lines like:

    deb http://archive.ubuntu.com/ubuntu zesty main restricted
    to
    deb http://old-releases.ubuntu.com/ubuntu zesty main restricted

  • Save the file (press Ctrl+O, hit Enter, then Ctrl+X to exit nano)
  • Update your package index:
    sudo apt update
    

Step 2: Install OpenSSH Server (Matching Your Client Version)

Now that your system can access the old packages, you can install the exact 7.4p1-10 version of openssh-server:

sudo apt install openssh-server=1:7.4p1-10

If you'd rather update both the client and server to the latest compatible version available for 17.04, just run:

sudo apt install openssh-server openssh-client

This will automatically pull in matching, supported versions for your EOL system.

Step 3: Verify and Set Up the Service

Once installed, make sure the SSH server is running and set to start on boot:

  • Start the service:
    sudo systemctl start ssh
    
  • Enable auto-start at boot:
    sudo systemctl enable ssh
    
  • Check if it's running properly:
    sudo systemctl status ssh
    

You should see a "active (running)" status if everything worked.

A Quick Note on Security

Since Ubuntu 17.04 is EOL, it won't receive any security patches—including critical updates for OpenSSH. If possible, consider upgrading your system to a supported LTS version like Ubuntu 20.04 or 22.04 to keep your machine secure long-term.

内容的提问来源于stack exchange,提问作者speedstyle

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 07:31:27