CentOS 7:GNU Screen无法安装[暂停]

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS 7:GNU Screen无法安装[暂停]相关的知识,希望对你有一定的参考价值。

想在CentOS上安装screen,但无法弄清楚安装失败的原因。

$yum -y install screen
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.up.pt
 * epel: mirrors.up.pt
 * extras: mirrors.up.pt
 * updates: mirrors.up.pt
Resolving Dependencies
--> Running transaction check
---> Package screen.x86_64 0:4.1.0-0.25.20120314git3c2946.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================
 Package               Arch                  Version                                            Repository           Size
==========================================================================================================================
Installing:
 screen                x86_64                4.1.0-0.25.20120314git3c2946.el7                   base                552 k

Transaction Summary
==========================================================================================================================
Install  1 Package

Total download size: 552 k
Installed size: 914 k
Downloading packages:


Error downloading packages:
  screen-4.1.0-0.25.20120314git3c2946.el7.x86_64: [Errno 5] [Errno 2] No such file or directory

$ sudo yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.up.pt
 * epel: mirrors.up.pt
 * extras: mirrors.up.pt
 * updates: mirrors.up.pt
repo id                                      repo name                                                              status
base/7/x86_64                                CentOS-7 - Base                                                        10,019
docker-ce-stable/x86_64                      Docker CE Stable - x86_64                                                  41
epel/x86_64                                  Extra Packages for Enterprise Linux 7 - x86_64                         13,121
extras/7/x86_64                              CentOS-7 - Extras                                                         387
mongodb-org-3.4/7                            MongoDB Repository                                                        105
nodesource/x86_64                            Node.js Packages for Enterprise Linux 7 - x86_64                           64
updates/7/x86_64                             CentOS-7 - Updates                                                      1,840
repolist: 25,577

$cat /etc/system-release
CentOS Linux release 7.5.1804 (Core) 

这里有什么问题?

答案

成功!幸运地遇到并从源here下载然后..

$yum install http://mirror.centos.org/centos/7/os/x86_64/Packages/screen-4.1.0-0.25.20120314git3c2946.el7.x86_64.rpm

..安装。

$hich screen
/usr/bin/screen

干杯!

以上是关于CentOS 7:GNU Screen无法安装[暂停]的主要内容,如果未能解决你的问题,请参考以下文章

CentOS 7.0升级GNU Bash

centos6.7下安装glibc-2.17

Linux ( Centos 7.3 x64) 安装 nginx

CentOS7常用安装软件列表

linux无root权限安装screen

源码编译安装screen