Я выполняю VM сервера Ubuntu 14.04.4 использующих виртуальных поля. Я настроил сеть, чтобы быть в "соединенном мостом адаптере" конфигурация. Я вручную присвоил IP того же адреса как сеть, машина окон хоста работает. Шлюз является беспроводным маршрутизатором. Я могу проверить с помощью ping-запросов общедоступного дюйм/с, и URIs переводятся также.
Когда я пытаюсь установить пакет программного обеспечения как 'chrony', с sudo apt-get install chrony
, я сразу получаю следующий вывод.
root@controller:~# apt-get install chrony
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package chrony
Когда я пытаюсь обновить склонный с sudo apt-get update
Я получаю вывод,
root@controller:~# apt-get update
Err http://extras.ubuntu.com trusty InRelease
Err http://extras.ubuntu.com trusty Release.gpg
Unable to connect to extras.ubuntu.com:http:
Err http://archive.canonical.com trusty InRelease
Err http://archive.canonical.com trusty Release.gpg
Unable to connect to archive.canonical.com:http: [IP: 91.189.92.150 80]
Err http://in.archive.ubuntu.com trusty InRelease
Err http://in.archive.ubuntu.com trusty-updates InRelease
Err http://in.archive.ubuntu.com trusty-backports InRelease
Err http://in.archive.ubuntu.com trusty Release.gpg
Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
Err http://in.archive.ubuntu.com trusty-updates Release.gpg
Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
Err http://in.archive.ubuntu.com trusty-backports Release.gpg
Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
Err http://security.ubuntu.com trusty-security InRelease
Err http://security.ubuntu.com trusty-security Release.gpg
Unable to connect to security.ubuntu.com:http: [IP: 91.189.91.23 80]
Reading package lists... Done
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/Release.gpg Unable to connect to extras.ubuntu.com:http:
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg Unable to connect to archive.canonical.com:http: [IP: 91.189.92.150 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Unable to connect to security.ubuntu.com:http: [IP: 91.189.91.23 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Мой /etc/network/interfaces
:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
#2nd if
auto eth1
iface eth1 inet static
address 192.168.1.100
netmask 255.255.255.0
#gateway 192.168.0.1
dns-nameservers 8.8.8.8 4.2.2.2
мой /etc/apt/sources.list
файл похож на это
#deb cdrom:[Ubuntu-Server 14.04.4 LTS _Trusty Tahr_ - Release amd64 (20160217.1)]/ trusty main restricted
#deb cdrom:[Ubuntu-Server 14.04.4 LTS _Trusty Tahr_ - Release amd64 (20160217.1)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
## N.B. 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://in.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://in.archive.ubuntu.com/ubuntu/ trusty universe
deb http://in.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ trusty-updates universe
## N.B. 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://in.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://in.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
## N.B. 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://in.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.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
Я попытался отключить маршрутизацию IPv6 для этого. Я не имею, сталкивается с такой проблемой с предыдущими попытками, я чувствую себя озадаченным после трех дней. Любое понимание ценилось бы. Чувствует, что я пропустил что-то явно очевидное, но быть не обращающим внимания на него.
Большое спасибо.
Попытайтесь проверить с помощью ping-запросов' google.com
'... и если этому не удалось проверить с помощью ping-запросов, затем делают следующее:
Редактирование /etc/resolv.conf
и добавляют
УВЕДОМЛЕНИЕ: можно использовать любой текстовый редактор, например', vi /etc/resolv.conf
'
nameserver 8.8.8.8
nameserver 8.8.4.4
В конце /etc/resolv.conf
- или наверху если это был пустой файл.
Это должно работать теперь, скажите мне, что произошло в комментариях :)
РЕДАКТИРОВАНИЕ: я заметил в/etc/network/interfaces - это - Вы, уже имеют поле "серверов имен DNS" initlized к Google Nameservers, но пытаются делать это на моем методе также :)
РЕДАКТИРОВАНИЕ: Хорошо! это решение будет 100%-я фиксация это (я надеюсь)... Поскольку я пытался использовать Ваш' sources.list
' копия, и я получил ту же проблему... После этого я пытался вернуться значение по умолчанию 'sources.list' использование ниже метода и этого 100% worked (Протестированный!) :)
ну, поскольку Ваши параметры сети прекрасны и Вы можете проверить с помощью ping-запросов все хорошо. Давайте восстановим значение по умолчанию' sources.list
' файл Вашей установки Ubuntu.
Так запускаются путем удаления поврежденного' sources.list
', и мы заменим его на следующих шагах:
sudo rm /etc/apt/sources.list
Теперь открывают' software-properties-gtk
', который автоматически создаст новое пустое' sources.list
' файл
sudo software-properties-gtk
В' software-properties-gtk
', галочка (проверка) 'Community-maintained free and open-source software (universe)
'
Затем набор' Download from:
' как' Server for USA
' или любой сервер, который является близко к Вашему местоположению.
И конечно, нажмите' Revert
' кнопку.