24

What do I want to do?

You can have
deb [trusted=yes] http://pathtoserver/ubuntu bionic main
deb [arch=amd64] http://pathtoserver/ubuntu bionic main

in sources.list separately.

Is there a way I can do
deb [trusted=yes, arch=amd64] http://pathtoserver/ubuntu bionic main or something like that where I can have only amd64 as options and trusted should be yes. in Ubuntu 18.04 Bionic.


Error

If I use the following deb line
deb [arch=amd64 trusted=yes] http://pathtoserver/ubuntu bionic main

E: Conflicting values set for option Trusted regarding source
E: The list of sources could not be read.

This is an airgapped system and I have mirrored the ubuntu repository for offline purpose.

5
  • 4
    According to manpages.debian.org/jessie/apt/sources.list.5.en.html you only need to separate the options with spaces. "options is always optional and needs to be surrounded by square brackets. It can consist of multiple settings in the form setting=value. Multiple settings are separated by spaces."
    – Terrance
    Feb 25, 2020 at 5:45
  • I get the following an error. I'm updating it now. Feb 25, 2020 at 5:55
  • What kind of deb line did you use then?
    – jarno
    Feb 25, 2020 at 9:45
  • amd64 earlier and now Feb 25, 2020 at 9:53
  • Check the rest of the file and subfolders for conflicting content.
    – jarno
    Feb 25, 2020 at 12:57

1 Answer 1

24

As you saw thanks to @Terrance's comment, you need to put the option like this : [trusted=yes arch=amd64] (in no particular order).

Regarding your second error, it would be because you have another entry that uses the same URL (http://pathtoserver/ubuntu) but does not have the [trusted=yes].

For example, if you have one entry for Releases and one entry for Sources, they both need to have the [trusted=yes].

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .