ubuntu进行apt-get时候出现Package ssh is not available, but is referred to by another package 错误
2017-04-18 21:18
519 查看
今天在ubuntu进行ssh安装的时候,出现如下错误。
Reading package lists… Done
Building dependency tree… Done
Package ssh 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
这个问题的原因是ubuntu的/etc/apt/source.list中的源比较旧了,需要更新一下,更新方法:
$ sudo apt-get -y update
更新完毕之后,在使用apt-get就没有问题了。
Reading package lists… Done
Building dependency tree… Done
Package ssh 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
这个问题的原因是ubuntu的/etc/apt/source.list中的源比较旧了,需要更新一下,更新方法:
$ sudo apt-get -y update
更新完毕之后,在使用apt-get就没有问题了。
相关文章推荐
- ubuntu进行apt-get时候出现Package ssh is not available, but is referred to by another package 错误
- ubuntu进行apt-get时候出现Package ssh is not available, but is referred to by another package 错误
- ubuntu进行apt-get时候出现Package ssh is not available, but is referred to by another package 错误
- ubuntu进行apt-get时候出现Package ssh is not available, but is referred to by another package 错误
- 启动SSH-server出现错误。Package openssh-server is not available, but is referred to by another package.
- Package vim is not available, but is referred to by another package.
- Package vim is not available, but is referred to by another package.
- "package gcc-4.4 is not available, but is referred to by another package", 安装gcc时出错的解决方法
- Python 出现错误 SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform.
- ubuntu 安装ssh-server时出现错误:openssh-server: Depends: openssh-client (= 1:5.3p1-3ubuntu3) but 1:5.3p1-3ubuntu4 is to be installed
- 安装Ubuntu之后默认英文,选简体中文,正常来说这样装好就应该能用的,可是这个时候又出现了错误,說:broken package database. 请用apt-get install -f解决问题
- apt-get update时出现“public key is not available”错误
- Ubuntu apt-get 出现Error 404:Not found Package Repository Errors
- 在docker使用ubuntu镜像并进行apt-get update的时候出现Hash Sum mismatch的问题
- 解决apt-get 依赖版本过高(Depends: AAA(>= BBB)but it is not going to install)的问题
- 使用chrome调试ajax加载本地文件的时候出现Failed to load resource: Origin null is not allowed by Access-Control-Allow
- sudo apt-get install g++ 出现“g++ : Depends: g++-4.8 (>= 4.8.2-5~) but it is not going to be installed
- 使用AlertDialog.Builder的时候出现错误:unable to add window --token null is not for an application的解决办法