** Summary changed: - Aptitude ignores apt_preferences + Aptitude ignores apt_preferences.d/*
** Summary changed: - Aptitude ignores apt_preferences.d/* + Aptitude ignores preferences.d/* ** Description changed: Binary package hint: aptitude - It seems that aptitude ignores settings in apt_preferences. In the - following example, apt-get upgrade correctly does not upgrade anything, - but aptitude incorrectly wants to upgrade some packages: + Aptitude honors pinning settings in /etc/apt/preferences, but ignores + any settings in /etc/apt/preferences.d/*. - # cat /etc/apt/sources.list.d/ubuntu-mozilla-daily-ppa-karmic.list - deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu karmic main #Mozilla PPA + To reproduce, add - # cat /etc/apt/preferences.d/mozilla-ppa - Package: * - Pin: release o=LP-PPA-ubuntu-mozilla-daily - Pin-Priority: 101 + deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu karmic + main - # apt-cache policy firefox-3.5 - firefox-3.5: - Installed: 3.5.7+nobinonly-0ubuntu0.9.10.1 - Candidate: 3.5.7+nobinonly-0ubuntu0.9.10.1 - Version table: - 3.5.8~hg20100115r26722+nobinonly-0ubuntu2~umd1~karmic 0 - 101 http://ppa.launchpad.net karmic/main Packages - *** 3.5.7+nobinonly-0ubuntu0.9.10.1 0 - 500 http://us.archive.ubuntu.com karmic-updates/main Packages - 500 http://security.ubuntu.com karmic-security/main Packages - 100 /var/lib/dpkg/status - 3.5.3+build1+nobinonly-0ubuntu6 0 - 500 http://us.archive.ubuntu.com karmic/main Packages + to your sources list and and entry of the form - # apt-get upgrade - Reading package lists... Done - Building dependency tree - Reading state information... Done - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. + Package: * + Pin: release o=LP-PPA-ubuntu-mozilla-daily + Pin-Priority: 101 - # aptitude upgrade - W: The "upgrade" command is deprecated; use "safe-upgrade" instead. - Reading package lists... Done - Building dependency tree - Reading state information... Done - Reading extended state information - Initializing package states... Done - The following packages will be upgraded: - firefox-3.5 firefox-3.5-branding firefox-3.5-gnome-support - 3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. - Need to get 0B/1,191kB of archives. After unpacking 53.2kB will be freed. - Do you want to continue? [Y/n/?] n - Abort. + to the preferences file and observe that aptitude will try to upgrade + firefox if the setting is in /etc/apt/preferences.d/, and (correctly) + stick with the karmic version of the setting is made in + /etc/apt/preferences. -- Aptitude ignores preferences.d/* https://bugs.launchpad.net/bugs/508545 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
