se nu
se ic
syn off
se tabstop=4
se expandtab
se shiftwidth=4
se autoindent
se incsearch
filetype plugin on
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Mar 22, 2010
Mar 15, 2010
sudo apt-get update fails
Fix for:
Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
ps -e | grep apt : shows if any apt processes are running
sudo kill : kill the apt process if running.
Example:
-ubuntu:~$ ps -e | grep apt
5502 ? 00:00:00 apt
5548 ? 00:00:14 apt-get
ubuntu:~$ sudo kill 5502
ubuntu:~$ sudo kill 5548
ubuntu:~$ sudo apt-get update
Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
ps -e | grep apt : shows if any apt processes are running
sudo kill
Example:
-ubuntu:~$ ps -e | grep apt
5502 ? 00:00:00 apt
5548 ? 00:00:14 apt-get
ubuntu:~$ sudo kill 5502
ubuntu:~$ sudo kill 5548
ubuntu:~$ sudo apt-get update
Mar 2, 2010
No manual entry for ...
After a long gap, you open you vim for coding and forget what argument in the source and what is the destination for strcpy or what params to pass for doing some geeky ioctl calls. So ask your good old man, by "man strcpy" or "man ioctl" and your man says "No manual entry for whatver you ask".
Type this one your Ubuntu terminal:
sudo apt-get install manpages-posix manpages-posix-dev gcc-4.4-doc c-cpp-reference
Type this one your Ubuntu terminal:
sudo apt-get install manpages-posix manpages-posix-dev gcc-4.4-doc c-cpp-reference
Subscribe to:
Posts (Atom)