2

In recent servers provided by my client's hosting provider, the /etc/apt/sources.list file contains references to:

deb http://ubuntu/ubuntu/ xenial main restricted
...
deb http://ubuntu-secu/ubuntu xenial-security multiverse

while previous servers contained lines that I'm used to see:

deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
...
deb-src http://security.ubuntu.com/ubuntu/ xenial-security multiverse

This particular url doesn't seem to resolve, yet the upgrades seem to work.

Is this something provided by Ubuntu itself?

If not, what is the explanation and where can it likely be defined?

5
  • I'd rather expect that this is something provided by your hosting provider, and it only resolves inside their network. Feb 1, 2019 at 9:15
  • I though about that, but curl -I http://ubuntu gives curl: (6) Could not resolve host: ubuntu, same for dig. I'm puzzled at this point! Feb 1, 2019 at 9:19
  • You did not disclose if it doesn't resolve on your server or on your local machine, so the option was still possible. Feb 1, 2019 at 9:20
  • It's buried in the middle of the text, sorry about that! But thanks for the suggestion! (EDIT: I understand you now!) Feb 1, 2019 at 9:22
  • Thanks again for your comment, this helped me find the right direction! Feb 1, 2019 at 9:32

1 Answer 1

4

I think I found out: the provider has set up an apt proxy in /etc/apt/apt.conf:

Acquire::http {
          Proxy "http://xxx.the-provider.com:1234";
};

This seems to understand the http://ubuntu/ubuntu.

Thanks to https://serverfault.com/users/38644/gerald-schneider for the hint!

3
  • Nice finding. I didn't think about a proxy, although I'm using one myself inside our network. Feb 1, 2019 at 9:38
  • Well thanks a lot to you - without your suspicion on the provider, I wouldn't have digged necessarily in that direction. Many thanks! Feb 1, 2019 at 9:45
  • As Ubuntu does not notice stale proxies by default, you probably want to configure appropriate valid-until-max for such apt-sources.
    – anx
    Feb 1, 2019 at 23:54

You must log in to answer this question.

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