As Pete mentioned, the "wrong" version comes from the proposed version.
We can see the list is here:

https://www.ubuntuupdates.org/package/core/xenial/main/proposed/gcc-5

The following is the table with the versions.

- Other versions of "gcc-5" in Xenial

Repository        Area        Version
==========        ====        =======
base              universe    5.3.1-14ubuntu2
base              main        5.3.1-14ubuntu2
security          main        5.4.0-6ubuntu1~16.04.10
security          universe    5.4.0-6ubuntu1~16.04.10
updates           universe    5.4.0-6ubuntu1~16.04.10
updates           main        5.4.0-6ubuntu1~16.04.10
proposed          universe    5.4.0-6ubuntu1~16.04.11
PPA: Canonical Kernel Team    5.4.0-6ubuntu1~16.04.9

What I don't understand is why that error still happens even though the
list of sources does not even include the "proposed" archive.

root@build:/# cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu xenial-security main
deb http://archive.ubuntu.com/ubuntu xenial-updates main
deb http://archive.ubuntu.com/ubuntu xenial main restricted
#deb-src http://archive.ubuntu.com/ubuntu xenial main restricted
root@build:/# ls /etc/apt/sources.list.d/
root@build:/# 

Looking at the policy for gcc-5 I get the following:

root@build:/# apt policy gcc-5
gcc-5:
  Installed: 5.4.0-6ubuntu1~16.04.11
  Candidate: 5.4.0-6ubuntu1~16.04.11
  Version table:
 *** 5.4.0-6ubuntu1~16.04.11 100
        100 /var/lib/dpkg/status
     5.4.0-6ubuntu1~16.04.10 500
        500 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     5.3.1-14ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages

And effectively when I look at the list of installed gcc-5 packages I
see that it's the proposed  version...

root@build:/# dpkg -l | grep gcc-5
ii  gcc-5                          5.4.0-6ubuntu1~16.04.11               amd64  
      GNU C compiler
ii  gcc-5-base:amd64               5.4.0-6ubuntu1~16.04.11               amd64  
      GCC, the GNU Compiler Collection (base package)
ii  libgcc-5-dev:amd64             5.4.0-6ubuntu1~16.04.11               amd64  
      GCC support library (development files)

Forcing the installation of version 5.4.0-6ubuntu1~16.04.10 doesn't
help. Next time I try a build, I get the same version errors (as shown
above.)

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

Title:
  "pbuilder-dist create xenial" fails (Unutu 16.04) since Oct 17, 2018

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1799859/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to