解决 apt-get 提示警告信息 N: Skipping acquire of configured file 'nginx/binary-i386/Packages' as repository


执行 apt-get update 报错:

N: Skipping acquire of configured file 'nginx/binary-i386/Packages' as repository 'http://nginx.org/packages/ubuntu bionic InRelease' doesn't support architecture 'i386'

解决方法

编辑文件 /etc/apt/sources.list.d/nginx.list

原来的

deb http://nginx.org/packages/ubuntu/ bionic nginx
deb-src http://nginx.org/packages/ubuntu/ bionic nginx

改为

deb [arch=amd64] http://nginx.org/packages/ubuntu/ bionic nginx
deb-src http://nginx.org/packages/ubuntu/ bionic nginx

增加 [arch=amd64] 后,重新执行 apt-get update 命令,这次警告消息没有了。

参考链接:
https://www.lightnetics.com/topic/16739/n-skipping-acquire-of-configured-file-nginx-binary-i386-packages-as-repository-http-nginx-org-packages-ubuntu-bionic-inrelease


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM