способное обновление, соединяющееся с моим общедоступным IP

У меня была проблема, куда мой Сервер Ubuntu 16,04 файловых систем пошел только для чтения на прошлой неделе. Я перезагрузил и должен был сделать fsck, который, кажется, устранил проблему, и она загружается, и я могу войти в систему прекрасный, однако я не могу сделать 'способного обновления' больше. То, когда я пробую его, пытается соединиться с моим общедоступным IP по некоторым причинам.

То, что является странным, - то, что я могу проверить с помощью ping-запросов us.archive.ubunutu.com и nslookup это, и это решает правильно.

broy@broyserver:/etc/apt$ ping us.archive.ubuntu.com
PING us.archive.ubuntu.com (91.189.91.26) 56(84) bytes of data.
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=1 ttl=57 time=6.11 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=2 ttl=57 time=4.02 ms
^C
--- us.archive.ubuntu.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 4.023/5.069/6.116/1.048 ms
broy@broyserver:/etc/apt$ nslookup us.archive.ubuntu.com
Server:         10.100.0.203
Address:        10.100.0.203#53

Non-authoritative answer:
Name:   us.archive.ubuntu.com
Address: 91.189.91.23
Name:   us.archive.ubuntu.com
Address: 91.189.91.26

Я заменил свой фактический общедоступный IP ниже MYPUBLICIP. Я раздал свои IP-адреса через dhcp, и я использую внутренний сервер DNS, который решает правильно. Почему мой сервер попытался бы использовать мой собственный общедоступный IP для обращений для обновлений?

broy@broyserver:/etc/apt$ sudo apt update
Err:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
  Could not connect to MYPUBLICIP:80 (MYPUBLICIP), connection timed out
Err:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
  Unable to connect to MYPUBLICIP:http:
Err:3 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
  Unable to connect to MYPUBLICIP:http:
Err:4 http://ppa.launchpad.net/mythbuntu/0.28/ubuntu xenial InRelease
  Unable to connect to MYPUBLICIP:http:
Err:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
  Unable to connect to MYPUBLICIP:http:
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Could not connect to MYPUBLICIP:80 (MYPUBLICIP), connection timed out
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Unable to connect to MYPUBLICIP:http:
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease  Unable to connect to MYPUBLICIP:http:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease  Unable to connect to MYPUBLICIP:http:
W: Failed to fetch http://ppa.launchpad.net/mythbuntu/0.28/ubuntu/dists/xenial/InRelease  Unable to connect to MYPUBLICIP:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.

У меня нет/etc/apt/apt.conf, который может быть проблемой. Кто-то мог дать мне вывод того, что должно быть там, таким образом, я могу создать его?

broy@broyserver:/etc/apt$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
broy@broyserver:/etc/apt$

/etc/apt/sources.list

broy@broyserver:/etc/apt$ cat /etc/apt/sources.list
#

# deb cdrom:[Ubuntu-Server 15.04 _Vivid Vervet_ - Release amd64 (20150422)]/ vivid main restricted

# deb cdrom:[Ubuntu-Server 15.04 _Vivid Vervet_ - Release amd64 (20150422)]/ vivid main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://us.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://us.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-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 vivid partner
# deb-src http://archive.canonical.com/ubuntu vivid partner
broy@broyserver:/etc/apt$

Добавление lsb-выпуска-a

broy@broyserver:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

Добавление хостов и resolv.conf

broy@broyserver:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 broyserver.broyuken.com broyserver
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
broy@broyserver:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 10.100.0.203
nameserver 8.8.8.8
nameserver 8.8.4.4
search broyuken.com
broy@broyserver:~$

Также добавляя вывод $http_proxy и $https_proxy

broy@broyserver:~$ echo $http_proxy

broy@broyserver:~$ echo $https_proxy

broy@broyserver:~$
0
задан 8 August 2017 в 05:48

1 ответ

Продолжайте и закрывайте это, мой шлюз безопасности блокировал apt через контроль приложений и перенаправлял на страницу проверки пользователя. Как только я это позволил, все снова заработало

0
ответ дан 2 November 2019 в 20:07

Другие вопросы по тегам:

Похожие вопросы: