ubuntu 安装ruby apt-get install ruby 出错
安装ruby 一直在163镜像网站找不到资源
No address associated with hostname)
Failed to fetch http://mirrors.163.com/ubuntu/pool/main/r/ruby-defaults/ruby_4.8_all.deb Something wicked happened resolving 'mirrors.163.com:http' (-5 – No address associated with hostname)
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
root@yangtao-virtual-machine:~# apt-get install ruby
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libreadline5 libruby1.8 ruby1.8
Suggested packages:
ri ruby-dev ruby1.8-examples ri1.8
The following NEW packages will be installed:
libreadline5 libruby1.8 ruby ruby1.8
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,944 kB of archives.
After this operation, 8,659 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libreadline5 libruby1.8 ruby1.8 ruby
Install these packages without verification [y/N]? n
E: Some packages could not be authenticated
root@yangtao-virtual-machine:~# apt-get install ruby
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libreadline5 libruby1.8 ruby1.8
Suggested packages:
ri ruby-dev ruby1.8-examples ri1.8
The following NEW packages will be installed:
libreadline5 libruby1.8 ruby ruby1.8
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,944 kB of archives.
After this operation, 8,659 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Abort.
root@yangtao-virtual-machine:~# apt-get install ruby
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libreadline5 libruby1.8 ruby1.8
Suggested packages:
ri ruby-dev ruby1.8-examples ri1.8
The following NEW packages will be installed:
libreadline5 libruby1.8 ruby ruby1.8
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,944 kB of archives.
After this operation, 8,659 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libreadline5 libruby1.8 ruby1.8 ruby
Install these packages without verification [y/N]? y
Err http://mirrors.163.com/ubuntu/ oneiric/main libreadline5 i386 5.2-9ubuntu1
Something wicked happened resolving 'mirrors.163.com:http' (-5 – No address associated with hostname)
Err http://mirrors.163.com/ubuntu/ oneiric/main libruby1.8 i386 1.8.7.352-2
Something wicked happened resolving 'mirrors.163.com:http' (-5 – No address associated with hostname)
Err http://mirrors.163.com/ubuntu/ oneiric/main ruby1.8 i386 1.8.7.352-2
Something wicked happened resolving 'mirrors.163.com:http' (-5 – No address associated with hostname)
Err http://mirrors.163.com/ubuntu/ oneiric/main ruby all 4.8
Something wicked happened resolving 'mirrors.163.com:http' (-5 – No address associated with hostname)
Failed to fetch http://mirrors.163.com/ubuntu/pool/main/r/readline5/libreadline5_5.2-9ubuntu1_i386.deb Something wicked happened resolving 'mirrors.163.com:http' (-5 – No address associated with hostname)
Failed to fetch http://mirrors.163.com/ubuntu/pool/main/r/ruby1.8/libruby1.8_1.8.7.352-2_i386.deb Something wicked happened resolving 'mirrors.163.com:http' (-5 – No address associated with hostname)
Failed to fetch http://mirrors.163.com/ubuntu/pool/main/r/ruby1.8/ruby1.8_1.8.7.352-2_i386.deb Something wicked happened resolving 'mirrors.163.com:http' (-5 – No address associated with hostname)
Failed to fetch http://mirrors.163.com/ubuntu/pool/main/r/ruby-defaults/ruby_4.8_all.deb Something wicked happened resolving 'mirrors.163.com:http' (-5 – No address associated with hostname)
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?