4

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 ?

2
  • What was the name of the package?
    – inimene
    Sep 5, 2014 at 9:20
  • the package name is oracle-java8-installer
    – MajAfy
    Sep 5, 2014 at 9:36

2 Answers 2

9

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]
1
  • I had to manually removed all directories refering to the offending package in /var/lib/dpkg/info/, before your solution, to make it work.
    – Bludwarf
    Feb 25, 2022 at 11:10
0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .