Post

apt update architecture warning

apt update architecture warning

apt update architecture warning

This warning shows up when a software repository is configured to serve packages for multiple architectures but your system doesn’t support all of them. The temporary fix edits the repo config, but the permanent fix is important — some repo files are auto-regenerated by a cron job and will reset your changes if you only fix the config file.

Temporary Fix

  • When getting ‘doesn’t support architecture’ warnings during apt update
1
$ cd /etc/apt/sources.list.d
  • Now open the software repository file that gave the above warning
1
2
3
4
5
6
7
8
9
10
$ sudo vi google-chrome-unstable.list

$ # now remove all unsupported architectures
$ # if running on amd machine the source line will look like

deb [arch=amd64] http://....

$ # save and exit, rut apt update again

$ sudo apt update

When doing above if you see the line ‘### THIS FILE IS AUTOMATICALLY CONFIGURED ### ‘ then it means that this file is being updated via a cron job.

Permanent Fix

  • Edit the cron job
1
2
3
4
5
6
7
$ sudo vi /etc/cron.daily/google-chrome-unstable

$ # now remove all unsupported architectures
$ # if running on 64bit the line will look like

REPOCONFIG="deb [arch=amd64] http://....

This post is licensed under CC BY 4.0 by the author.