在 ubuntu 服务器中 apt-get update 显示代理服务器错误

在 ubuntu 服务器中 apt-get update 显示代理服务器错误

我正在尝试更新在 Raspberry Pi 4B 上运行的 Ubuntu 服务器 22.10 上的软件包,该服务器被用作远程服务器。DNS 中没有错误,我尝试 ping google.com 并且它工作正常。

--- google.com ping statistics --- 9 packets transmitted, 9 received, 0% packet loss, time 8013ms rtt min/avg/max/mdev = 6.560/6.795/6.941/0.126

我不确定我的 UFW 防火墙端口。如果在打开或关闭任何端口时出现任何错误,请告诉我。

ufw 防火墙状态

root@ubuntu:~# sudo ufw status
Status: active


To                         Action      From
--                         ------      ----
10000                      ALLOW       Anywhere                  
22/tcp                     ALLOW       Anywhere                  
80/tcp                     ALLOW       Anywhere                  
443                        ALLOW       Anywhere                  
80                         ALLOW       Anywhere                  
53                         ALLOW       Anywhere                  
443/tcp                    ALLOW       Anywhere                  
9200                       ALLOW       Anywhere                  
10000 (v6)                 ALLOW       Anywhere (v6)             
22/tcp (v6)                ALLOW       Anywhere (v6)             
80/tcp (v6)                ALLOW       Anywhere (v6)             
80 (v6)                    ALLOW       Anywhere (v6)             
53 (v6)                    ALLOW       Anywhere (v6)             
443/tcp (v6)               ALLOW       Anywhere (v6)             
443 (v6)                   ALLOW       Anywhere (v6)             
9200 (v6)                  ALLOW       Anywhere (v6)

显示的错误

root@ubuntu:~# sudo apt-get update
Ign:1 http://download.opensuse.org/repositories/isv:/ownCloud:/server:/10/Ubuntu_21.10  InRelease
Ign:2 http://ports.ubuntu.com/ubuntu-ports kinetic InRelease
Ign:3 https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic InRelease
Ign:4 http://ports.ubuntu.com/ubuntu-ports kinetic-updates InRelease
Ign:5 http://ports.ubuntu.com/ubuntu-ports kinetic-backports InRelease
Ign:6 http://ports.ubuntu.com/ubuntu-ports kinetic-security InRelease
Ign:1 http://download.opensuse.org/repositories/isv:/ownCloud:/server:/10/Ubuntu_21.10  InRelease
Ign:2 http://ports.ubuntu.com/ubuntu-ports kinetic InRelease
Ign:3 https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic InRelease
Ign:4 http://ports.ubuntu.com/ubuntu-ports kinetic-updates InRelease
Ign:5 http://ports.ubuntu.com/ubuntu-ports kinetic-backports InRelease
Ign:6 http://ports.ubuntu.com/ubuntu-ports kinetic-security InRelease
Ign:1 http://download.opensuse.org/repositories/isv:/ownCloud:/server:/10/Ubuntu_21.10  InRelease
Ign:2 http://ports.ubuntu.com/ubuntu-ports kinetic InRelease
Ign:3 https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic InRelease
Ign:4 http://ports.ubuntu.com/ubuntu-ports kinetic-updates InRelease
Ign:5 http://ports.ubuntu.com/ubuntu-ports kinetic-backports InRelease
Ign:6 http://ports.ubuntu.com/ubuntu-ports kinetic-security InRelease
Err:1 http://download.opensuse.org/repositories/isv:/ownCloud:/server:/10/Ubuntu_21.10  InRelease
  Temporary failure resolving 'proxyserver'
Err:2 http://ports.ubuntu.com/ubuntu-ports kinetic InRelease
  Temporary failure resolving 'proxyserver'
Err:3 https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic InRelease
  Temporary failure resolving 'proxyserver'
Err:4 http://ports.ubuntu.com/ubuntu-ports kinetic-updates InRelease
  Temporary failure resolving 'proxyserver'
Err:5 http://ports.ubuntu.com/ubuntu-ports kinetic-backports InRelease
  Temporary failure resolving 'proxyserver'
Err:6 http://ports.ubuntu.com/ubuntu-ports kinetic-security InRelease
  Temporary failure resolving 'proxyserver'
Reading package lists... Done
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/kinetic/InRelease  Temporary failure resolving 'proxyserver'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/kinetic-updates/InRelease  Temporary failure resolving 'proxyserver'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/kinetic-backports/InRelease  Temporary failure resolving 'proxyserver'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/kinetic-security/InRelease  Temporary failure resolving 'proxyserver'
W: Failed to fetch http://download.opensuse.org/repositories/isv:/ownCloud:/server:/10/Ubuntu_21.10/InRelease  Temporary failure resolving 'proxyserver'
W: Failed to fetch https://ppa.launchpadcontent.net/ondrej/php/ubuntu/dists/kinetic/InRelease  Temporary failure resolving 'proxyserver'
W: Some index files failed to download. They have been ignored, or old ones used instead.

未创建代理服务器,已使用此行代码进行了检查

echo "$http_proxy"

echo "$https_proxy"

env | grep proxy

以上所有内容均未显示任何输出,即使在 sudo nano /etc/apt/apt.conf 中也没有任何内容。

我想让它恢复到以前的正常更新和升级方式,并且我想删除不需要的 UFW 端口,因为这可能会损害服务器的安全。

编辑:::::: 如需进一步讨论和解决方案,请查看 https://ubuntuforums.org/showthread.php?t=2484973&p=14136226#post14136226

相关内容