[SOLVED] apt-get update resulted in "Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)"
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ondoho,
I did not realize sudo DOES have root priveleges. Not as much as full root priveleges. Basically, I Could inadvertantly mess up my computer more easily using full root,I hear what you are saying though...
I don't think you are hearing what I'm saying, because I did not say that.
On most systems, using sudo will give you full root privileges.
Configurations of sudo may vary, but this is the most common configuration for desktop Linux.
Did you see my previous post? It's important that you get how to paste from a terminal. Click and drag your mouse to highlight text in a terminal window and then middle click your mouse where you want to paste the text. Just like magic. :-)
--glenn
Last edited by PsychoHermit; 10-14-2021 at 10:03 PM.
If you look at the default sudo-control files, you will see how membership in the wheel (as in "big wheel," I suppose ...) group gives you godly powers. You can walk into any nearby telephone booth, utter the magic words "sudo su", enter your(!) login password, and sail off into the stratosphere wearing ugly blue tights.
Which is precisely why I make very sure that "the accounts that I use every day" cannot do such a thing. The privileges and the file-access which I afford to these user-ids are the least that are necessary for them to do their jobs.
I have a user-id for each client. I have another user-id that I use when I have to be my own bookkeeper. And, I have another user-id that I might be using right now. Every one of them is "just an ordinary joe." They can see what they need to see and do what they need to do ... and absolutely nothing else. If any of them wander into a telephone booth, the only thing that they can do there is to make a phone call.
And then, there's one user-id left over: clark_kent
Last edited by sundialsvcs; 10-13-2021 at 09:02 PM.
To try and add a little (and hopefully clarify what was said by PsychoHermit) about using code tags.
If you want to type in the code tags then simply do this
Code:
\[code\]
your pasted text here
\[/code\]
An alternative is to select the "go advanced" button at the bottom of the text input window then in the toolbar at the top you will see a # sign. If you click on that it will create the code tags for you and by simply pasting the text you are copying in between the code tags it does the same as I showed above. I used the \ to force the system to show the [ ] brackets, but you would not type those ( \ ) in when entering the tags.
Last edited by computersavvy; 10-27-2021 at 09:20 PM.
I just wrote a detailed reply letting you know I apologize for my delay in replying. I did not understand , still even after your 2nd attempt PsychoHermit ! I had hoped after a bit I would understand it.
THen I am just now seeing computersavvy post. THank you.
I proceeded to lose my reply here !
Apparently I am needing even more basic instructions on this ... I seem to have a mind block !
Okay, so now,
After trial and error, I see that the mouse wheel pressed does post the terminal info that I highlight.
I got that.
I see # does produce computersavvy I do not follow " I used the \ to force the system to show the [ ] brackets, but you would not type those ( \ ) in when entering the tags."
What matters is, am I correct that I enter \[code\] before I use mouse wheel to paste the highlighted terminal results ?
THen reenter \[code\] ?
THen push enter ?
I tried that and the blue box still does not show up.
What am I missing ?
Thanks in advance for your patience and help. I really want to get this !!!
Maggie
I just wrote a detailed reply letting you know I apologize for my delay in replying. I did not understand , still even after your 2nd attempt PsychoHermit ! I had hoped after a bit I would understand it.
THen I am just now seeing computersavvy post. THank you.
I proceeded to lose my reply here !
Apparently I am needing even more basic instructions on this ... I seem to have a mind block !
Okay, so now,
After trial and error, I see that the mouse wheel pressed does post the terminal info that I highlight.
I got that.
I see # does produce computersavvy I do not follow " I used the \ to force the system to show the [ ] brackets, but you would not type those ( \ ) in when entering the tags."
What matters is, am I correct that I enter \[code\] before I use mouse wheel to paste the highlighted terminal results ?
THen reenter \[code\] ?
THen push enter ?
I tried that and the blue box still does not show up.
What am I missing ?
Thanks in advance for your patience and help. I really want to get this !!!
Maggie
Ok, lets back up a bit.
At the bottom of the window where you are entering the text there is a button labeled "advanced"
When you click on that button you will see the top toolbar change from a simple one line tool bar to 2 lines.
Near the far right end of the second tool bar line is the # symbol
When you click on that # symbol it will paste the code tags into your text at the location where the cursor is, and the cursor will be between the two code tags.
Simply paste the text you copied from the screen between the 2 tags and it will be shown in a code box with the formatting maintained when you select preview post or submit it.
You also can paste the text in, then highlight it with the mouse before you click on the # symbol and it will put the code tags before & after the highlighted text.
This is an opening code tag
[code]
The closing code tag is the same except it has /code between the square brackets.
The opening code tag goes before what you paste in & the closing code tag goes after the text pasted in.
Last edited by computersavvy; 10-27-2021 at 09:40 PM.
Just learned how to produce blue box for terminal info :)
Thanks so much for your speedy reply !
pressed #
Highlighted on terminal
Pasted terminal line using wheel on mouse
Code:
maggie@linux ~ $
"You also can paste the text in, then highlight it with the mouse before you click on the # symbol and it will put the code tags before & after the highlighted text."
Code:
maggie@linux ~ $
Does the blue box show up after I post ?
JUst tried preview and both methods produced blue box. YAAAY !
Thank you so much. I had not realized the box is produced After it is posted.
Success!
Again, thanks to both of you for your patience !
NOTE: Private messages are only enabled for members in the Senior Member and Contributing Member usergroups.
IIRC, you automatically become a member of the Senior Member usergroup after 150 posts. Senior Member usergroup membership is different from the title shown in your profile: you become called Senior Member after 1000 posts only. Very confusing, I know.
Yes, confusing ! What is meant by "posts" ? By posts, does that mean the posts you do on another member's thread to help solve it ?
Does that number show on your profile?
If I understand you correctly, after the 150 posts, your title does not change, but you can then do private message?
It takes 1000 posts to have your title change?
By posts, does that mean the posts you do on another member's thread to help solve it?
No. Any posts.
Quote:
Does that number show on your profile?
Yes.
Quote:
If I understand you correctly, after the 150 posts, your title does not change, but you can then do private message?
It takes 1000 posts to have your title change?
Exactly. Another possibility to unlock private messaging immediately is to become a Contributing Member.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Quote:
Originally Posted by magster
Hi Rickkkk,
In this thread,you wrote
Code:
feel free to message me anytime - you just click on my user name and choose private message. I will add you to my contacts.
I click on your user name, but do not see private message as one of the options.....
What am I missing ? How do I private message you ?
Thanks !
Maggie
Hi Maggie,
Sincere apologies - I did not know about the criteria required to be able to message someone here. I know that forums like this one generally encourage public posting so that all may learn from issues discussed. I tend to agree, but I repeat that I am happy to help as well if messaged.
So once you are able to do so, feel free. In the meantime, I am not on here often as of late - work is keeping me busy. But I will look out for you when I am on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.