我刚收到一台预装了 Ubuntu 14.04 的戴尔电脑,但我无法通过 ssh 登录,也无法安装openssh-server
。我认为apt-get
是配置错误,但我没有调整经验。也许是错误的存储库?有什么线索可以给我吗?
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
# apt-get install rcs openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openssh-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package rcs
E: Package 'openssh-server' has no installation candidate
# cat /etc/apt/sources.list.d/*
deb http://dell.archive.canonical.com/updates/ trusty-dell public
deb-src http://dell.archive.canonical.com/updates/ trusty-dell public
deb http://dell.archive.canonical.com/updates/ trusty-dell-ws-vivid-skl public
deb-src http://dell.archive.canonical.com/updates/ trusty-dell-ws-vivid-skl public
deb http://oem.archive.canonical.com/updates/ trusty-oem public
deb-src http://oem.archive.canonical.com/updates/ trusty-oem public
deb http://oem.archive.canonical.com/updates/ trusty-oem-sp1 public
deb-src http://oem.archive.canonical.com/updates/ trusty-oem-sp1 public
猫/etc/apt/sources.list
ls /etc/apt/sources.list.d
trusty-dell.list trusty-dell-ws-vivid-skl.list trusty-oem.list trusty-oem-sp1.list
答案1
使用“软件和更新”GUI 面板。在“ubuntu 软件”选项卡中,检查除“源代码”之外的所有内容。在“更新”选项卡中,检查“重要安全更新”和“推荐更新”。关闭面板,保存更改。然后重试 apt-get,它就可以正常工作了。