wget:无法解析主机地址‘sudo’

wget:无法解析主机地址‘sudo’

我对这些东西很陌生,所以我问了这个问题。我试图从终端安装 Java v6,但出现了几个错误,例如:

--2015-06-29 15:52:31-- http://sudo/ Resolving sudo (sudo)... failed: Name or service not known. wget: unable to resolve host address ‘sudo’

--2015-06-29 15:52:46--  http://dpkg
Resolving dpkg (dpkg)... failed: Name or service not known.
wget: unable to resolve host address ‘dpkg’

--2015-06-29 15:52:56--  http://!%3Carch%3E/
Resolving !<arch> (!<arch>)... failed: Name or service not known.
wget: unable to resolve host address ‘!<arch>’

--2015-06-29 15:53:11--  http://debian-binary%20%20%201399372320%20%200%20%20%20%20%200%20%20%20%20%20100644%20%204%20%20%20%20%20%20%20%20%20%60/
Resolving debian-binary   1399372320  0     0     100644  4         ` (debian-binary   1399372320  0     0     100644  4         `)... failed: Name or service not known.
wget: unable to resolve host address ‘debian-binary   1399372320  0     0     100644  4         `’

--2015-06-29 15:53:22--  http://2.0/
Resolving 2.0 (2.0)... 2.0.0.0
Connecting to 2.0 (2.0)|2.0.0.0|:80... failed: Connection timed out.
Retrying.

我正在尝试为我的设备构建自定义 ROM,并且它需要安装 Java v6。因此我查看了位于以下位置的指南:http://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763我正在关注它。当我安装java时,这个问题就出现了。请尽快帮我解决。我的重要工作已经准备好了。:)

答案1

我认为,您引用的链接应该是:

wget https://launchpad.net/~webupd8team/+archive/ubuntu/java/+files/oracle-java6-installer_6u45-0%7Ewebupd8%7E8_all.deb 
sudo dpkg -i oracle-java6-installer_6u45-0~webupd8~8_all.deb 
wget https://launchpad.net/~webupd8team/+archive/ubuntu/java/+files/oracle-java6-set-default_6u45-0%7Ewebupd8%7E8_all.deb 
sudo dpkg -i oracle-java6-set-default_6u45-0~webupd8~8_all.deb

也就是说,要在终端中输入 4 条命令,而不仅仅是一条。基本上,第一行和第三行会下载软件,而第二行和第四行会安装软件。希望这对你有所帮助。

相关内容