2017-03-17 155 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