The tag has no usage guidance.

learn more… | top users | synonyms

15
votes
1answer
16k views

Install with sudo app-get install doesn't work, “Not using locking for read only file /var/lib/dpkg/lock”

I just installed Ubuntu Touch on my Nexus 7. Unfortunately I can't install anything from the terminal app: If I enter: sudo apt-get install yasm -y git make g++ build-essential libminiupnpc-dev I ...
13
votes
4answers
12k views

iOS 7 Locked Bug via Ubuntu 13.10

I wanted to bring up an issue with the latest Ubuntu release that I hope can be solved. Although I will agree with the community that iOS 7 is not the most open platform release, it still is my desire ...
12
votes
3answers
8k views

Lock and Unlock from USB disk (pendrive)

Is there Any program for locking and unlocking my Ubuntu machine using a flash- drive? For instance, when I take out the usb flash drive, the computer locks automatically and when I put in the flash ...
10
votes
0answers
24k views

Installation Error, “Unable to lock the administration directory” [duplicate]

Whenever I try to install any software through Terminal or Software on my Ubuntu 11.04, I'm getting this response: In Terminal: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource ...
9
votes
5answers
37k views

Can't format / delete locked partition from gparted?

I can't format my hard disk for Ubuntu installation. It has Fedora installed in it. I wonder how to unlock the locked partition to delete and format it, since I am stuck at installing Ubuntu. I am now ...
9
votes
3answers
10k views

How do I enable Scroll Lock?

I need to enable scroll lock so I can toggle lights on my keyboard. This works on Arch.Funny thing it doesn't work on Ubuntu. ...
7
votes
1answer
4k views

Lock Tmux Session With Vlock

I have just installed tmux and vlock. When I try to perform the lock-session command, my terminal flashes and then nothing happens. Is there something in my .tmux.conf that must be added to tell tmux ...
6
votes
4answers
11k views

Unable to use package manager due to “exclusive lock” error [duplicate]

My synaptic package manager in ubuntu10.10 is giving error: Unable to get exclusive lock This usually means that another package management application(like apt-get or aptitude) is already ...
6
votes
2answers
5k views

Unable to lock screen after upgrading to 12.04

After upgrading to 12.04, I can't lock my screen anymore, has anyone encountered this and found a solution? Basically the keyboard shortcut does nothing and even if I select the lock option from the ...
6
votes
5answers
14k views

Lubuntu enforces screen lock

I can't disable screen lock in Lubuntu. In Power management I have it unchecked. There is another option "Enable light locker" in the "Light locker settings". I also have this unchecked but I still ...
6
votes
2answers
3k views

Not Locking Screen after X minutes

Since I upgraded from Ubuntu 11.10 to 12.04 (and also 12.10 problem still occurs), my notebook does not lock the screen automatically. I wen into "Brightness and Lock" settings, Set "Turn Screen of ...
5
votes
2answers
1k views

Lock Ubuntu Server 12.0.4

How do I lock Ubuntu server screen without installing gnome screensaver? I'm running the server with only the console without desktop installed.
4
votes
4answers
2k views

“Lock” one specific file so that I nor root no longer have access to it any more

To combat procrastination, I edit my /etc/hosts file by adding time-wasting websites and pointing them to localhost. However, the flesh is weak and I often find myself reverting my changes. I was ...
4
votes
2answers
116 views

What is the purpose of lock file? [duplicate]

I have seen a file named lock in /var/cache/apt/archives in my Ubuntu 14.04. This file has only root access. When I try to display the contents of this file using sudo nano lock the file seems empty. ...
4
votes
1answer
2k views

CPU usage goes to 100% when I lock the screen

Whenever I lock the screen, after a certain amount of time, the CPU and the CPU fan go to their limits, and they return back to normal the moment I unlock the screen again (as shown by psensor). How ...
4
votes
1answer
2k views

Lock Terminal and Suspend from Terminal

I am trying to lock and suspend from the terminal. I tried: pmi action suspend | at now + 1 min And then typed exit But both that and vlock kill the running command. Is there a way to lock the ...
4
votes
1answer
851 views

What is the gksudo “lock taken…exiting” warning and how do I resolve it?

I recently run into problems when using gksudo. For example, the Truecrypt installation fails because of following error: ** (gksudo:3262): WARNING **: Lock taken by pid: -1. Exiting. PID must be a ...
4
votes
2answers
1k views

How to unlock file, locked by a process

The file is locked by a process, java in my case. I only want the lock to be released. lsof | grep /home/user/workspace1 A temporary solution was to 'End Process' from 'System Monitor'. But ...
3
votes
8answers
666 views

CTRL-ALT-L not locking screen Ubuntu 15.04 w/ Gnome

Title says it all. This is a feature I need. It's probably something easy, but googling it just gave me a hodgepodge of unrelated stuff.
3
votes
3answers
10k views

How do I unlock /var/lib/dpkg/lock? [duplicate]

I attempted to install dropbox on my Ubuntu system, but now I am unable to install or uninstall any software. I get this error: E: Unable to lock the administration directory /var/lib/dpkg/lock? I ...
3
votes
4answers
17k views

Folders showing lock icon

Whenever I open my documents, all the folders in it are displayed with a lock icon. Therefore, I cannot delete any file or folder in it. I tried changing the root access using sudo chmod ...
3
votes
1answer
492 views

How do I prevent the blank screensaver when using keyboard shortcut to lock the computer?

I lock my computer a lot, and was wondering if there was a way to get the lock screen when I hit ctrl + alt + L. Right now when I use that key combination it turns the screen black, and I have to hit ...
3
votes
1answer
708 views

How to unlock locked session?

I'm using xubuntu 14.04 on AMD based hardware. It is configured not to lock a session and not to power down automatically on longer idle times. There have been no recent changes or new software ...
3
votes
1answer
1k views

Is it possible to permanently lock launcher icons?

I have installed Ubuntu onto my parents laptop. They are around their 80s. They manage to remove icons from the launcher accidentally again and again. I have to put them back manually, only to find ...
3
votes
1answer
2k views

Unable to create lock file when starting mongod via upstart

I'm trying to set up my mongodb upstart script to work as an arbiter, but I'm having permission problems when trying to create the lock file in the data directory: Tue Apr 1 17:11:01 [initandlisten] ...
3
votes
1answer
117 views

How to launch program on lock and close it on unlock [duplicate]

Have siblings who like to "play" with my laptop by waking it from suspension and then typing random keys on the keyboard into the password field. Afterwards, they always deny it. I plan to install ...
3
votes
1answer
600 views

Purpose of /run/lock/ (empty except for ./whoopsie/)

My /run/lock/ directory is empty except for ./whoopsie/. I have understood /run/lock/ as a replacement for /var/lock/ but was surprised to find it entirely empty. Is whoopsie meant as a deterrent ...
3
votes
0answers
87 views

After closing the lid, no screen display and computer hangs. Have to restart everytime.(14.10)

When I lock my laptop and close the lid, and again after sometime,when I open the lid, their is a blank screen with no display and even if I press any key(s), my system does not wake up.I have to ...
3
votes
0answers
205 views

Ubuntu 14.04 logs me out when I try to lock screen

I'm having a weird problem where every time I try to lock the screen, Ubuntu logs me out instead. And when I log back in after locking, it makes me login twice: First I enter my password with the ...
3
votes
0answers
239 views

Screen doesn't lock automatically [closed]

I have Ubuntu 12.04. No matter what I adjust the screen to. The screen does not lock automatically after any number of minutes. How do I remedy this?
3
votes
0answers
1k views

Change lock screen to the current wallpaper? [duplicate]

Possible Duplicate: How can I change or install screensavers? When I lock Ubuntu 11.10, but before I unlock it, the screen is black. Is there any way to change the black background to, say, ...
2
votes
3answers
129 views

Inspite of the options the screen locks after X minutes

The OS Ubuntu 12.10 is installed on my computer. I want my computer never locks the monitor's screen. So that I chose the item "never" in the option "Lock the screen after...". But it doesn't work. ...
2
votes
2answers
118 views

What is the role of lock files in a system?

I can see there are many lock file here and there in my system. What is the exact role and purpose of those lock files? In my system I got this list, /run/lock/whoopsie/lock /proc/sys/dev/cdrom/lock ...
2
votes
2answers
2k views

Ubuntu 12.04 forgetting XModmap settings often

I have the following contents in my ~/.Xmodmap file. It seems a couple times a day (without rebooting or logging out) I need to rerun the command "xmodmap ~/.Xmodmap" to reset my settings. The only ...
2
votes
2answers
13k views

Mouse locks when keys are pressed

Whenever I play Minecraft and try to walk and turn at the same time, I can't. When I hit keys on my keyboard, my mouse locks in place. (This happens both in and outside of Minecraft) (Ubuntu 10.04 ...
2
votes
1answer
322 views

Are you a root? [duplicate]

If I want to install a program by: sudo apt-get install package_name I always get the error: E: Could not open lock file /var/lib/apt/lists/lock - open (2 No such file or directory) E: Unable to ...
2
votes
1answer
984 views

How to unlock screen in Kubuntu 11.10?

After upgrading to Kubuntu 11.10, I'm no longer able to unlock my screen. The screen stays blank. Oddly, it seems I'm able to logout of my current session by hitting Ctrl-Alt-Delete Enter. Any ...
2
votes
0answers
13 views

Smart lock like on Android?

Is it possible to configure either LightDM or GDM to automatically log in when my laptop is connected to a certain WiFi? Or even better, to check my location regardless of what WiFi I use?
2
votes
1answer
85 views

Brightness & Lock missing in System Settings - can't change screen locking time

I am running 14.04.2 LTS. I want to change the time it takes to automatically lock the screen when I step away, but there is no Brightness & Lock option listed under the System Settings. I have ...
2
votes
0answers
197 views

Unable to use webcams

I have 3 webcams attached to my laptop for a c++/opencv project and my program crashed. Now it keeps giving warnings that "device or resource busy". I suspect this is a OS level error. Is there any ...
2
votes
1answer
133 views

Put monitor to sleep when locked?

Whenever Ubuntu 13.10 locks: Instead of making the monitor go black and the power button (on the monitor) turn orange like Windows did. It loses connection to the computer and shows me the Dell ...
2
votes
2answers
3k views

I seem to be locked out of my account [duplicate]

Possible Duplicate: Cannot get past login screen I keep trying to log in on start up, typing my password and pressing enter. But it doesn't go through. I just get kicked back to the login ...
2
votes
2answers
507 views

How can I disable screen locking _completely_ in Ubuntu 10.04?

We have Ubuntu-clients in our school and our students MUST NOT lock their screen. If they leave, they have to log out. Unfortunately there is an option to lock screen, so many students do so. I ...
1
vote
1answer
566 views

/run/lock and /run/shm missing

Recently I found /run/lock and /run/shm folders to be missing. I tried to recover some files with a mounted disk, I now know that this may caused the harm. So unaware what to do, I created these ...
1
vote
1answer
583 views

Locking keyboard, mouse and CDROM for baby

I use laptop and need to use keyboard between baby activities... Is there any software for ubuntu that does all these things by pressing just one key (or predefined combination/password)? I tried ...
1
vote
1answer
215 views

Why have to lock archives and dpkg while doing installing apps and updates.

Actually if we suspend any application installing in middle or suspending updates then automatically while resuming we will get some problems like E: Could not get lock /var/cache/apt/archives/lock ...
1
vote
1answer
29 views

Explanation of visudo lock file

When I edit /etc/sudoers using visudo, I think it saves to sudoers.tmp, checks it for errors, then copies it to the real /etc/sudoers. However, I can't confirm my theory (how the lock file is used) ...
1
vote
1answer
195 views

Computer not suspending when inactive in the main log-in prompt

My computer is set to automatically dim the screen and lock after 10 minutes, and suspend after an hour of inactivity. That works fine - but only once I've logged in. If I switch the computer on and ...
1
vote
2answers
60 views

How to restrict account access temporarily ubuntu

I need to temporarily lock accounts for couple of users on my Ubuntu server. What would be the best way to do this? Reason for doing this is a maintenance. However for some users the accounts need to ...
1
vote
3answers
2k views

How to lock a folder from terminal

Is there any way to lock a folder from terminal(protected with password) without using any third party applications like truecrypt,crypteeper nor giving user permissions. It was just like whenever a ...