LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-04-2016, 01:11 AM   #1
happydog500
Member
 
Registered: Dec 2006
Location: Washington St.
Distribution: Linux Mint 18.2, Windows 7, 10, Ubuntu-MATE, Xubuntu, devuan, and about a dozen others-Hopper
Posts: 304

Rep: Reputation: 5
Could Not Open, Unable to Lock Directory


I installed tor-borwser in Mint 17.3 Xfce. I guess I got the invisible one, because it doesn't show up in any of the menus from start (LM). Everything else says it's installed, but I can't find it anywhere.
I tried terminal, I tried downloading it, seemed to screw things up. Maybe I tried to many times. Now I get this;

E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

So I now have more problems then I had when I tried to install tor.

What should I do to fix this?

Thank you,
Chris.
 
Old 07-04-2016, 03:01 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 17,555

Rep: Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930
I do not know what did you try but this message is coming from apt and you should run it as root (at least I guess)
 
Old 07-04-2016, 02:28 PM   #3
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 538Reputation: 538Reputation: 538Reputation: 538Reputation: 538Reputation: 538
This is a symptom of having multiple instances of apt open. This includes Synaptic package manager, which is a GUI frontend for apt. Make sure Synaptic is not running, and no other instances of apt are running in other terminals. If you're absolutely certain this is the case, remove the .lock files from /var/lib subdirectories. All this is assuming you're doing all this as root. If you're not root, you can't do any of this, and that's the cause of the error messages.

To find an executable binary, try typing
Code:
which tor
in a terminal. That should give you the path to it. I've never seen the need for Tor, so I'm not sure exactly where it's installed, but I would first try in your home directory, perhaps in a hidden folder preceded by ".", as in .tor or something similar. Failing that, it could be in /opt, or in /usr/bin. Or somewhere else, as I said I've never bothered to install it.

Last edited by sgosnell; 07-04-2016 at 02:37 PM.
 
Old 07-04-2016, 04:48 PM   #4
happydog500
Member
 
Registered: Dec 2006
Location: Washington St.
Distribution: Linux Mint 18.2, Windows 7, 10, Ubuntu-MATE, Xubuntu, devuan, and about a dozen others-Hopper
Posts: 304

Original Poster
Rep: Reputation: 5
Thank you, it's in, "/usr/sbin/tor"

I restarted the computer each time, so it should of not had two managers open. What an OS. You install a program, it's there, but you can't see it or use it. Not only that, but installing the invisible program, it screws up the computer so you can't install anything else. Unbelievable.

Thank you again for replying,




Chris.
 
Old 07-05-2016, 11:13 AM   #5
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 538Reputation: 538Reputation: 538Reputation: 538Reputation: 538Reputation: 538
It's tor. Tor is designed that way. Don't confuse one software package with an OS. If you don't know what you're doing, tor is not a good choice for a browser. It's designed for one specific use case, not for the general public.

Installing tor did not cause the problems with apt. You may have caused them by your actions, but it wasn't tor's fault, it was yours. Linux lets you do lots of things, however you want to do them. But freedom has a downside, in that you have to know what you're doing, or there is a risk of borkage.
 
Old 07-05-2016, 08:56 PM   #6
happydog500
Member
 
Registered: Dec 2006
Location: Washington St.
Distribution: Linux Mint 18.2, Windows 7, 10, Ubuntu-MATE, Xubuntu, devuan, and about a dozen others-Hopper
Posts: 304

Original Poster
Rep: Reputation: 5
Sorry, the Tor that I used for the last several years is not made that way. Using Mint Cinnamon I had "Tor" along with "Firefox" for browser choices. One LM Cinnamon I had a "tor" icon on the desktop. The only time I installed tor, but can't use the browser is in Xfce. That's why I posted here.

The one I'm trying to install is that one, with a "tor browser" not the invisible one, that you have to use a different browser, that you must be talking about.

It installed in every distro I've ever used, worked perfectly, except Xfce.

I only use it when I need to look up information that's blocked from my ISP.

Thank you for the reply,
Chris.
 
Old 07-08-2016, 08:52 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,540
Blog Entries: 4

Rep: Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430
It's quite possible that an installation step must be executed using sudo command ... but the product itself, when in operation, should not require root privilege.

Also: "you might absolutely love tor, or you might absolutely hate it." As for myself, I don't find much use for it. The way that it 'scatters' traffic all over the Internet (as it is expressly designed to do) makes performance very erratic. It's a very special-purpose tool and you most likely don't really have a purpose for what it does. (IMHO...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to lock the administration directory (/var/lib/dpkg/) cccc Debian 11 12-05-2017 09:33 PM
Unable to lock the administration directory (/var/lib/dpkg/) skkoobb Linux - Newbie 1 04-11-2015 04:28 PM
Unable to lock the administration directory (/var/lib/dpkg/) leemol Debian 3 10-12-2013 08:09 PM
Unable to lock the administration directory (Ubuntu) Braynid Linux - Newbie 2 12-27-2010 11:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration