Yesterday I trying to install a package with apt-get but I regret of installing this package, but every time I want to install a new package the apt-get trying to install that package again !

How I can cancel hold packages in apt-get ?

  • What was the name of the package? – Kaspar Sep 5 '14 at 9:20
  • the package name is oracle-java8-installer – MajAfy Sep 5 '14 at 9:36
up vote 7 down vote accepted

You may not have removed the package correctly, or apt-get got interrupted while removing the package. First, I would suggest running the following to process pending operations:

apt-get -f install

Once this is done, use autoremove to make sure there is no garbage in the way:

apt-get autoremove

Then, remove your package completely:

apt-get remove --purge [package name]

I manually removed it from folder list. I checked the path where they are about to be installed. On my part,

it's located in /etc/apt/souces.list.d/PACKAGE_NAME

I was trying to install spotify running Jessie from raspberry pi. Then 'sudo apt-get update ' was successful again.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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