Results 1 to 3 of 3

Thread: HOWTO: make aptitude remove unneeded depends of a metapackage

  1. #1
    Join Date
    Apr 2007
    Location
    USA
    Beans
    1,043

    HOWTO: make aptitude remove unneeded depends of a metapackage

    - Bug report: https://bugs.launchpad.net/ubuntu/+s...de/+bug/128681
    - Workaround: edit the file.
    Here is the default /etc/apt/apt.conf.d/01autoremove:
    Code:
    APT
    {
      NeverAutoRemove  
      { 
    	"^linux-image.*";  
    	"^linux-restricted-modules.*";
    	"^linux-ubuntu-modules-.*";
      };
    
      Never-MarkAuto-Sections
      { 
    	"metapackages";
            "restricted/metapackages";
            "universe/metapackages";
            "multiverse/metapackages";
      };
    };
    You need to change it to:
    Code:
    APT
    {
      NeverAutoRemove  
      { 
    	"^linux-image.*";  
    	"^linux-restricted-modules.*";
    	"^linux-ubuntu-modules-.*";
      };
    };

  2. #2
    Join Date
    Jun 2005
    Location
    France
    Beans
    7,100
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: make aptitude remove unneeded depends of a metapackage

    Nice guide, thanks.

    May i suggest to just comment the lines rather than deleting them as it would be easier in this case to revert back the changes for those you want to do it ?

  3. #3
    Join Date
    Apr 2007
    Location
    USA
    Beans
    1,043

    Re: HOWTO: make aptitude remove unneeded depends of a metapackage

    How do you comment lines in the APT directive files? Do you just begin them with #? I tried that and got:
    Code:
    E: Syntax error /etc/apt/apt.conf.d/01autoremove:11: Extra junk after value
    Last edited by maybeway36; December 1st, 2007 at 07:20 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •