Skip to main content

Posts

Ubuntu dpkg lock error

Error on ubuntu: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? Solution: You have two errors here.  1. You are missing a GPG key 2. The dpkg lock file is locked. You should fix (2) before you fix (1). 2. Open a terminal and type lsof – List Of Open Files Code: sudo lsof /var/lib/dpkg/lock You can then either close that program, restart your PC or send a -TERM to the program with the lock by using kill and the pid. Code: sudo  kill <pid> After killing the process the dpkg needs to be configured else it will throw this error: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.  Code: sudo   dpkg  --configure -a 1. Only if required: After that you need to import the key. EDIT: Added command. Code: sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2EBC26B
Recent posts

MATLAB shortcut in ubuntu/linux

Create a symbolic link in  /usr/local/bin , i.e. as su ln -s /usr/local/MATLAB/R2013a/bin/matlab /usr/local/bin/matlab 1.download your own icon- sudo wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png 2.give your access permission sudo touch /usr/share/applications/matlab.desktop 3.edit your .desktop file sudo gedit /usr/share/applications/matlab.desktop 4.and paste the following into the document. #!/usr/bin/env xdg-open [Desktop Entry] Type=Application Icon=/usr/share/icons/matlab.png Name=MATLAB R2014a Comment=Start MATLAB - The Language of Technical Computing Exec=matlab -desktop Categories=Development;

Delete the old OS boot option from the OS boot screen

For windows 7 and higher versions: 1.open the command promt with administrator privilege. (Goto C:\windows\system32 and right click on cmd.exe, run as administrator)    2.Type bcdedit command   (you will get a list of the OS boot files) 3.copy the IDENTIFIER of the OS you want to delete from the boot menu 4.Type bcdedit /delete IDENTIFIER  For windows XP and lower versions: http://www.howtogeek.com/howto/windows/how-to-delete-modify-or-disable-an-incorrect-or-duplicate-entry-on-the-xp-boot-menu/

Guide to install wifi drivers for ubuntu 12.04

1. Download this file (b43) it includes the broadcom series drivers. 2. Extract the zip file b43 3. Copy the extracted file b43 to filesystem /lib/firmware unfortunately you wont be able to paste it and it will give an error permission denied. This is because you dont have the root privileges To grant root privileges through nautilus: 1.open the terminal and type sudo nautilus enter your password (it will open a folder through which you can modify the root contents) note:after this do not terminate the terminal running nautilus 2. Make a new folder in file system rename it to .config In .config make one more folder named nautilus path should look like filesystem/.config/nautilus 3.Copy the downloaded file b43 to the path filesystem/ lib/firmware it should be copied 4. open a new terminal window type sudo modprobe -V b43   (hit enter) enter your password (hit enter) (it will display module_init..............) this means you have successfully installed the dr