[Bug 1613184] Re: method mirror broken at 1.3

Julian Andres Klode 1613184 at bugs.launchpad.net
Sat Nov 11 19:35:35 UTC 2017


Verified on zesty:

root at d5c73dbb41a2:/# apt-cache  policy libapt-pkg5.0                    
libapt-pkg5.0:                                                                      
  Installed: 1.4.6~17.04.1                                                       
  Candidate: 1.4.8                  
  Version table:             
     1.4.8 500          
        500 http://archive.ubuntu.com/ubuntu zesty-proposed/main amd64 Packages
 *** 1.4.6~17.04.1 500
        500 http://archive.ubuntu.com/ubuntu zesty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.4 500
        500 http://archive.ubuntu.com/ubuntu zesty/main amd64 Packages
root at d5c73dbb41a2:/# apt update
Hit:1 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu zesty InRelease
Hit:3 http://archive.ubuntu.com/ubuntu zesty-updates InRelease
Get:4 http://archive.ubuntu.com/ubuntu zesty-backports InRelease [89.2 kB]
Reading package lists... Done                                 
E: Method mirror has died unexpectedly!
E: Sub-process mirror received a segmentation fault.
root at d5c73dbb41a2:/# apt install -q -y libapt-pkg5.0
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
  libapt-pkg5.0
1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 784 kB of archives.
After this operation, 1024 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu zesty-proposed/main amd64 libapt-pkg5.0 amd64 1.4.8 [784 kB]
Fetched 784 kB in 1s (550 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 4078 files and directories currently installed.)
Preparing to unpack .../libapt-pkg5.0_1.4.8_amd64.deb ...
Unpacking libapt-pkg5.0:amd64 (1.4.8) over (1.4.6~17.04.1) ...
Setting up libapt-pkg5.0:amd64 (1.4.8) ...
Processing triggers for libc-bin (2.24-9ubuntu2.2) ...
root at d5c73dbb41a2:/# apt update
Hit:1 http://archive.ubuntu.com/ubuntu zesty InRelease
Hit:2 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu zesty-updates InRelease
Get:4 http://archive.ubuntu.com/ubuntu zesty-backports InRelease [89.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu zesty-proposed InRelease [240 kB]
Get:6 mirror://mirrors.ubuntu.com/mirrors.txt zesty InRelease [243 kB]              
Get:7 mirror://mirrors.ubuntu.com/mirrors.txt zesty/main amd64 Packages [1574 kB]
Fetched 2147 kB in 2s (733 kB/s)    
Reading package lists... Done
Building dependency tree       
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.


** Tags removed: verification-needed-zesty
** Tags added: verification-done-zesty

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

Title:
  method mirror broken at 1.3

Status in apt package in Ubuntu:
  Fix Released
Status in apt source package in Xenial:
  Fix Committed
Status in apt source package in Zesty:
  Fix Committed

Bug description:
  [Impact]
  The mirror method always dies with a SEGV. It does not initialize _system but calls a function that sometimes uses it.

  [Test case]
  Use a mirror sources.list entry like

  deb mirror://mirrors.ubuntu.com/mirrors.txt zesty main restricted
  universe multiverse

  [Regression potential]
  The fix is small, and simply avoids using _system if _system is NULL in the called method. There should not be any regressions due to this.

  https://anonscm.debian.org/cgit/apt/apt.git/commit/?id=cba5c5a26a9bf00724f8ea647ac61b30e32734ba

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



More information about the foundations-bugs mailing list