0

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!

3

1 Answer 1

0

By omitting / at the start of the path you are specifying a relative path, but you want to specify an absolute path:

sudo gedit /var/lib/dpkg/status

Also, please use gksudo for graphical applications. sudo isn't really fit for that. Like this:

gksudo gedit /var/lib/dpkg/status

See What is the difference between “gksudo nautilus” and “sudo nautilus”?.

1
  • I thought it would be something stupid like that, thanks for that. Also I didn't know the difference between sudo and gksudo. Apr 7, 2015 at 3:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .