0

I added a bad ppa to my system and now I need to do manual package removing/downgrading.

The issue is that I enabled apt-get autoremove a while ago and removing a package to later replace it/downgrade threaten to uninstall perfectly working apps from my system.

I came across a solution to disable apt-get autoremove but for some reason I am not sure it applies to my configuration (trusty) as my /etc/apt/apt.conf.d/01autoremove looks very different from the sample:

APT::Get::AutomaticRemove "0";
APT::Get::HideAutoRemove "1";

Here what my 01autoremove looks like:

APT
{
  NeverAutoRemove
  {
    "^firmware-linux.*";
    "^linux-firmware$";
  };

  VersionedKernelPackages
  {
    # linux kernels
    "linux-image";
    "linux-headers";
<snip>

I really need to disable the autoremove feature so I can start to fix my package version with a clear mind and fearing that some other related package/app got deleted.

0

I found an answer here (for others that stumble upon this unanswered question)

https://askubuntu.com/a/34668/432978

"The /etc/apt/apt.conf file is still read if it exists. The apt configuration provided by packages is installed as separate files in /etc/apt/apt.conf.d/ so that it can be added and updated independent of any local changes you make in the main configuration file.

So if you have local configuration changes, just create the file."

So drop those lines into /etc/apt/apt.conf and you should be good to go. It worked for me.

  • Instead of copying another answer it is better to flag the answer as duplicate. – Pilot6 Jul 25 '15 at 7:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.