I recently had an error with cinnamon desktop environment that I know how to fix. There is just one stupid obstacle in my way, when I try to use
sudo gedit var/lib/dpkg/status
to go to that folder it takes me to home/var/lib/dpkg/status (not even a folder I have made?) and opens a text document named status with gedit. I need to open computer/var/lib/dpkg/status. This looks and sounds like a stupid thing to me, it probably is, can you even do this? If you can, please tell me how. Also, if this is a duplicate (I don't think anyone else is as stupid as me) please link me the op. Thanks!
gksudo
instead ofsudo
when opening a program that uses a graphical interface. See What is the difference between “gksudo nautilus” and “sudo nautilus”?gksu
/gksudo
, you can usesudo -H
orsudo -i
instead to run a graphical application as root (and still avoid the problems with plainsudo
).