Hello,
I have found a command in https://help.ubuntu.com/community/AptGet/Howto, which is
Code:
dpkg -l | grep '^rc' | awk '{print $2}' | xargs dpkg --purge
.
The website states that
While there is no built in way to remove all of your configuration information from your removed packages you can remove all configuration data from every removed package with the following command.
.
So I tried the command, it returned
dpkg: error: requested operation requires superuser privilege
. So I tried to use sudo..., but it returned:
Code:
dpkg: error: requested operation requires superuser privilege
.
I sought help in a chess forum and the guy told me to open xterm with sudo and then type the command. This returned:
Code:
dpkg: error: --purge needs at least one package name argument
Type dpkg --help for help about installing and deinstalling packages[*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked[*] produce a lot of output - pipe it through 'less' or 'more' !
.
He then told me to try the normal LXterminal and to add "sudo" just before "xargs". This returned
Code:
dpkg: error: --purge needs at least one package name argument
Type dpkg --help for help about installing and deinstalling packages[*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked[*] produce a lot of output - pipe it through 'less' or 'more' !
.
Finally I found the "fix" myself: "sudo su" and then type the command, that removed a few packages.
I am trying to understand why "sudo" failed in the first place, why "sudo su" was required and why placing "sudo" in front of "xargs" gave exactly the same result as being root in Xterm and still failed to execute the command as it should. I would appreciate some help and explanations on what's going on.
Thank you very much.
Bookmarks