我怀疑我的 ADSL 调制解调器/路由器提供的名称服务器有问题。每当我在 ubuntu 中第一次浏览网站时,解析域名至少需要 15 秒。
为了解决这个问题,我将名称服务器配置/etc/resolv.conf从 192.168.1.1(我的 ADSL 调制解调器)更改为 8.8.8.8(谷歌的主 DNS)。这似乎解决了问题,但不幸的/etc/resolv.conf是,每次启动时我的更改都被“NetworkManager”覆盖。
在 ubuntu 10.4 中配置名称服务器 IP 的正确方法是什么?
问题描述:
每次我尝试为我的操作系统 (Ubuntu 12.04) 下载更新时,我都会收到以下错误消息列表:
W:Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release.gpg Something wicked happened resolving 'extras.ubuntu.com:http' (-5 - No address associated with hostname)
, W:Failed to fetch http://ppa.launchpad.net/deluge-team/ppa/ubuntu/dists/precise/Release.gpg Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)
, W:Failed to fetch http://packages.medibuntu.org/dists/precise/Release.gpg Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)
, W:Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/Release.gpg Something wicked happened resolving 'archive.canonical.com:http' (-5 - No address associated with hostname)
, W:Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/precise/Release.gpg Something wicked happened …Run Code Online (Sandbox Code Playgroud) 我正在按照这些说明在我的笔记本电脑上安装 git。
当我做:
$ sudo apt-get install git-core
这是我的终端显示的内容:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libasprintf0c2:i386
libcroco3:i386
libgettextpo0:i386
libgomp1:i386
libunistring0:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
git git-man liberror-perl
Suggested packages:
git-daemon-run
git-daemon-sysvinit
git-doc git-el
git-arch git-cvs
git-svn
git-email
git-gui
gitk gitweb
The following NEW packages will be installed:
git git-core git-man liberror-perl
0 upgraded, …Run Code Online (Sandbox Code Playgroud) 每次我尝试通过终端安装时,我都会得到这个“我无法安装或更新,我在这里找不到工作答案。这是我的 apt-get 更新结果:
点击 http://ppa.launchpad.net raring Release.gpg 点击 http://deb.opera.com stable Release.gpg 点击 http://ppa.launchpad.net raring Release.gpg 点击 http://deb.opera.com 稳定版 点击 http://ppa.launchpad.net raring 发布 点击 http://deb.opera.com stable/non-free i386 Packages 点击 http://ppa.launchpad.net raring 发布 点击 http://ppa.launchpad.net raring/main i386 Packages 点击 http://ppa.launchpad.net raring/main i386 Packages Ign http://deb.opera.com stable/non-free Translation-en_US Ign http://deb.opera.com stable/non-free Translation-en Ign http://ppa.launchpad.net raring/main Translation-en_US Ign http://ppa.launchpad.net raring/main 翻译-en Ign http://ppa.launchpad.net raring/main Translation-en_US Ign http://ppa.launchpad.net raring/main 翻译-en 错误 http://archive.ubuntu.com raring Release.gpg 解决“archive.ubuntu.com:http”(-11 - 系统错误)时发生了一些邪恶的事情 错误 http://extras.ubuntu.com raring Release.gpg 解决“extras.ubuntu.com:http”(-11 - 系统错误)时发生了一些邪恶的事情 错误 …