aptitude search throws an error if used without sudo
Bug #21704 reported by
mon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aptitude (Ubuntu) |
Fix Released
|
Medium
|
Michael Vogt |
Bug Description
If I type: "aptitude search package", aptitude throws an error about not been
able to open /home/<
If done with: "sudo aptitude search package" there's no error.
"apt-cache search package" doesn't throw an error message if used without sudo.
I don't think it's necesary to use root priv. to search for a package.
To post a comment you must log in.
Thanks for your bugreport.
can you please do a "$ ls -l ~/.aptitude/config"
on a termianl and check if the file actually is owned by your user or by root?
My guess is that it's root. You should chown the file back to your user. This
is probably a side-effect of saving the config under sudo before (sudo does not
changes HOME by default, it only does that if called with sudo -H).
Cheers,
Michael