安装 nginx:E:无法获取...404 未找到

安装 nginx:E:无法获取...404 未找到

每当我尝试在 Ubuntu 20.04 LTS 上安装 NGINX 时,它都会输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gconf-service gconf-service-backend gconf2-common libappindicator1 libc++1
  libc++1-10 libc++abi1-10 libdbusmenu-gtk4 libgconf-2-4
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-stream nginx-common nginx-core
Suggested packages:
  fcgiwrap nginx-doc
The following NEW packages will be installed:
  libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-stream nginx nginx-common nginx-core
0 upgraded, 7 newly installed, 0 to remove and 29 not upgraded.
Need to get 602 kB of archives.
After this operation, 2,134 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 nginx-common all 1.18.0-0ubuntu1
Err:2 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libnginx-mod-http-image-filter amd64 1.18.0-0ubuntu1
  404  Not Found [IP: 91.189.91.38 80]
Err:3 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libnginx-mod-http-xslt-filter amd64 1.18.0-0ubuntu1
  404  Not Found [IP: 91.189.91.38 80]
Err:4 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libnginx-mod-mail 

等等...然后:

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我试过这样做,但根本不起作用。我也sudo apt-get update试过sudo apt-get upgrade

有什么帮助吗?

相关内容