PeppaPigKilla
Posts: 4
Joined: Sat Jan 28, 2017 6:53 pm

How to remove package

Sun Jul 30, 2017 10:50 am

When i do

Code: Select all

sudo apt-get update
at the end of the update this is churned out.
I believe i added this a while back trying to install something, either way its not needed, but i cant for the life of me figure out how to remove it so i no longer get the error.

Code: Select all

W: GPG error: http://repo.mongodb.org wheezy/mongodb-org/3.0 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9ECBEC467F0CEB10
W: Failed to fetch http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/3.4/Release  Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/3.0/main/binary-armhf/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
I have tried the following

Code: Select all

 ~ sudo apt-get --purge remove http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/3.0/main/binary-armhf/Packages
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package http
E: Couldn't find any package by regex 'http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/3.0/main/binary-armhf'
➜  ~ sudo apt-get --purge remove http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/3.4/Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package http
E: Couldn't find any package by regex 'http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/3.4'
➜  ~
None works, any guidance would be appreciated.

Thanks

PeppaPigKilla
Posts: 4
Joined: Sat Jan 28, 2017 6:53 pm

Re: How to remove package

Sun Jul 30, 2017 11:04 am

figured it out

I had to go into

Code: Select all

/etc/apt/sources.list.d/
in here i had the file

Code: Select all

mongodb-org-3.0.list
I then

Code: Select all

sources.list.d sudo rm mongodb-org-3.0.list
No longer getting error message

Return to “Troubleshooting”