Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 4060

General Questions • Re: Can't remove extrepo due to apt errors

$
0
0
Hello!

Remove the foreign repo, from the file which you added it.

It is /etc/apt/sources.list or in /etc/apt/sources.d/ some file

Check that did right, do as root or if you use sudo, sudo apt update.

When all is ok, use this:

Code:

dpkg-query -W -f '${Package}\n' | xargs apt-cache policy | sed -ne '/^ /{H;$!b};x;/\*\*\* [^\n]*\n[^\n]*\/var\/lib\/dpkg\/status/p'
You probably need to install sed to get above work.

Statistics: Posted by arzgi — 2026-01-04 16:43



Viewing all articles
Browse latest Browse all 4060

Trending Articles