Page 1 of 1

NGINX update issue (Ubuntu 18.04 Bionic)

Posted: Tue Jul 09, 2019 10:17 am
by twoup
Updating Ubuntu 18.04 bionic when you have "NGINX" installed will produce the following error:

Code: Select all

nginx N: Skipping acquire of configured file 'nginx/binary-i386/Packages' as repository 'http://nginx.org/packages/mainline/ubuntu bionic InRelease' doesn't support architecture 'i386'
This can be resolved as follows:
  • Log on to your server's CLI
  • sudo su
  • nano /etc/apt/sources.list.d/nginx.list
  • change the entry to

    Code: Select all

    deb [arch=amd64] http://nginx.org/packages/mainline/ubuntu/ bionic nginx
  • ctrl+x to exit, y to save your changes
apt update will now function as expected.

Re: NGINX update issue (Ubuntu 18.04 Bionic)

Posted: Tue Jul 09, 2019 5:21 pm
by skamasle
Vesta will not install 32bits nginx, maybe you have some repos issue or some repo was changed

I asume you run 64bits ubuntu and not 32bits ?

Re: NGINX update issue (Ubuntu 18.04 Bionic)

Posted: Wed Jul 31, 2019 12:31 pm
by andras
Thank you for the solution. The i386 nginx package left on my system:

Code: Select all

# apt upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  nginx
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
I have been upgraded the nginx architecture:

Code: Select all

# sudo apt-get install nginx
*** nginx (Y/I/N/O/D/Z) [default=N] ? N
*** nginx.conf (Y/I/N/O/D/Z) [default=N] ? N
# systemctl restart nginx

Re: NGINX update issue (Ubuntu 18.04 Bionic)

Posted: Tue Jun 22, 2021 7:28 pm
by saosangmo
Today, I install VestaCP but still get this problem.

I solve this issue:

Code: Select all

nano /etc/apt/sources.list.d/nginx.list
change

Code: Select all

deb http://nginx.org/packages/mainline/ubuntu/ bionic nginx
to

Code: Select all

deb [arch=amd64] http://nginx.org/packages/ubuntu/ bionic nginx
Test again:

Code: Select all

apt-get update