** Description changed: + TEST CASE: + + 1. get rid of the log directory + 2. $ sudo mv /var/log/apt /var/log/apt.bak + + 3 try to install/remove a package (I'll use htop here) + $ sudo apt-get install htop + Reading package lists... Done + Building dependency tree + Reading state information... Done + Suggested packages: + strace ltrace + The following NEW packages will be installed: + htop + 0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded. + Need to get 66.1kB of archives. + After this operation, 217kB of additional disk space will be used. + Get:1 https://ftp-stud.hs-esslingen.de/ubuntu/ lucid/universe htop 0.8.3-1ubuntu1 [66.1kB] + Fetched 66.1kB in 1s (57.1kB/s) + Selecting previously deselected package htop. + (Reading database ... 65298 files and directories currently installed.) + Unpacking htop (from ../htop_0.8.3-1ubuntu1_amd64.deb) ... + Setting up htop (0.8.3-1ubuntu1) + + Segmentation fault + 4. verify the that it segfaults + 5. install apt from lucid-proposed + 6. repeat step 3 and verify that the segfault is gone + + Binary package hint: apt Description: Ubuntu lucid (development branch) Release: 10.04 apt: Installed: 0.7.25.3ubuntu1 Candidate: 0.7.25.3ubuntu1 Version table: *** 0.7.25.3ubuntu1 0 500 http://archive.ubuntu.com lucid/main Packages 100 /var/lib/dpkg/status If you try to run apt and /var/log/apt doesn't exist (because you mounted /var/log as a tmpfs for example) apt will segfault at the end when trying to save the logs. The fixed package doesn't segfault anymore and tells you "E: Directory '/var/log/apt/' missing" instead. - - TEST CASE: - - get rid of the log directory - $ sudo mv /var/log/apt /var/log/apt.bak - - try to install/remove a package (I'll use htop here) - $ sudo apt-get install htop - Reading package lists... Done - Building dependency tree - Reading state information... Done - Suggested packages: - strace ltrace - The following NEW packages will be installed: - htop - 0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded. - Need to get 66.1kB of archives. - After this operation, 217kB of additional disk space will be used. - Get:1 https://ftp-stud.hs-esslingen.de/ubuntu/ lucid/universe htop 0.8.3-1ubuntu1 [66.1kB] - Fetched 66.1kB in 1s (57.1kB/s) - Selecting previously deselected package htop. - (Reading database ... 65298 files and directories currently installed.) - Unpacking htop (from ../htop_0.8.3-1ubuntu1_amd64.deb) ... - Setting up htop (0.8.3-1ubuntu1) - - Segmentation fault
-- apt-get always crash with Segmentation fault (core dumped) if /var/log/apt doesn't exist. https://bugs.launchpad.net/bugs/535509 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
