Public bug reported:

When running apt-get update I received a message

Some sources can be modernized. Run 'apt modernize-sources' to do so.

After running the script I saw a warning

N: Skipping acquire of configured file 'main/binary-i386/Packages' as
repository 'https://dl.google.com/linux/chrome/deb stable InRelease'
doesn't support architecture 'i386'


The original file /etc/apt/sources.list.d/google-chrome.list had this line:
deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main

It was replaced by /etc/apt/sources.list.d/google-chrome.sources

Types: deb
URIs: https://dl.google.com/linux/chrome/deb/
Suites: stable
Components: main 
Signed-By: /etc/apt/trusted.gpg.d/google-chrome.gpg

The architecture restriction to amd64 was ignored in the transform.

The correct result would have been

Types: deb
URIs: https://dl.google.com/linux/chrome/deb/
Suites: stable
Components: main 
Architectures: amd64
Signed-By: /etc/apt/trusted.gpg.d/google-chrome.gpg


My expectations is that all restrictions will be transformed.

https://repolib.readthedocs.io/en/latest/deb822-format.html#one-line-
format has these examples:

deb [] http://example.com.ubuntu disco main restricted multiverse universe
deb [ arch=amd64 ] http://example.com/ubuntu disco main nonfree
deb [lang=en_US] http://example.com/ubuntu disco main restricted universe 
multiverse
deb [ arch=amd64,armel lang=en_US,en_CA ] http://example.com/ubuntu disco main

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2115562

Title:
  apt mondernize-sources ignores architectures

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2115562/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to