簡體   English   中英

apt-get 嘗試連接到未知的 IP

[英]apt-get trying to connect to unknown IP

Cofession:我只是 shell 和網絡的新手,如果這是某種錯誤,我很抱歉!

apt-get 似乎在我的 shell 中不起作用。 它似乎正在嘗試連接到甚至不響應 ping 的 IP (10.6.1.57)。

這就是我嘗試 apt-update: 0% [Connecting to 10.6.1.57 (10.6.1.57)] [Connecting to 10.6.1.57 (10.6.1.57)] {這似乎是 go 長時間}

這是我的 /etc/apt/sources.list 文件:

 # deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://archive.ubuntu.com/ubuntu trusty main restricted deb-src http://archive.ubuntu.com/ubuntu trusty main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted deb-src http://archive.ubuntu.com/ubuntu trusty-updates main restricted ## NB software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu trusty universe deb-src http://archive.ubuntu.com/ubuntu trusty universe deb http://archive.ubuntu.com/ubuntu trusty-updates universe deb-src http://archive.ubuntu.com/ubuntu trusty-updates universe ## NB software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://archive.ubuntu.com/ubuntu trusty multiverse deb-src http://archive.ubuntu.com/ubuntu trusty multiverse deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse deb-src http://archive.ubuntu.com/ubuntu trusty-updates multiverse ## NB software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu trusty-security main restricted deb-src http://archive.ubuntu.com/ubuntu trusty-security main restricted deb http://archive.ubuntu.com/ubuntu trusty-security universe deb-src http://archive.ubuntu.com/ubuntu trusty-security universe deb http://archive.ubuntu.com/ubuntu trusty-security multiverse deb-src http://archive.ubuntu.com/ubuntu trusty-security multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu trusty partner deb-src http://archive.canonical.com/ubuntu trusty partner ## Uncomment the following two lines to add software from Ubuntu's ## 'extras' repository. ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. deb http://extras.ubuntu.com/ubuntu trusty main deb-src http://extras.ubuntu.com/ubuntu trusty main

檢入/etc/apt/sources.list.d/中包含該ip的列表文件。

/etc/apt/apt.conf.d/00apt-cacher-proxy檢查此文件: /etc/apt/apt.conf.d/00apt-cacher-proxy也許有一些代理,因為就我而言。

我只改變了一件事讓它工作。 在 /etc/resolve.conf 中添加了“nameserver 8.8.8.8”,效果很好

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM