2017-03-17 110 views
2

我似乎无法在AWS Linux实例上安装Fish shell。我不断收到以下错误,似乎无法找到解决方法。如何在AWS Linux上安装Fish Shell

[[email protected] ec2-user]# yum -y install fish 
Loaded plugins: priorities, update-motd, upgrade-helper 
Repository shells_fish_release_2 is listed more than once in the configuration 
Resolving Dependencies 
--> Running transaction check 
---> Package fish.x86_64 0:2.5.0-1.2 will be installed 
--> Processing Dependency: hostname for package: fish-2.5.0-1.2.x86_64 
--> Finished Dependency Resolution 
Error: Package: fish-2.5.0-1.2.x86_64 (shells_fish_release_2) 
      Requires: hostname 
You could try using --skip-broken to work around the problem 
You could try running: rpm -Va --nofiles --nodigest 
+0

我也试过的RPM软件包相同的结果上面,它的抱怨需要的主机名。 –

回答

3

相同的方式,在CentOS 6

from:

cd /etc/yum.repos.d/ 
wget http://download.opensuse.org/repositories/shells:fish:release:2/CentOS_6/shells:fish:release:2.repo 
yum install fish 
+1

我仍然得到相同的错误。我已经运行yum更新以获得更好的效果。 –

+0

试试yum install net-tools,那一个提供主机名 – at0mzk

+0

主机名是它自己的包在centos 7.对于aws linux需要centos 6回购,可能你意外安装了一个用于7。 – at0mzk