I was configuring my local Ubuntu installation (14.04 LTS). I got this error while trying to run apt-get. I have seen many answer regarding this issue. None of a single answer solve my issue. So I have decided to post a question even many duplicates exists. See my answer below.
I get this error when trying to use apt-get:  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?     How can I fix this?
Shortcuts in Objective-C to concatenate NSStrings How to install Canon LBP2900b drivers? Free vector graphic images, for commercial use Is there a free library of vector graphics for commercial use? I recently got a Windows 10 laptop. Opposite to my Macbook, I must swipe right-to-left to go to the right virtual desktop. Is there a way to reverse this, so I swipe left-to-right to go to the right virtual desktop? The  (or conjecture), suggests that black holes can be entirely described by their mass, angular momentum and charge. All other details of the BH formation are lost.  Is there a simple way of understanding why you would be able to tell the difference between a BH made from protons and one made from electrons, but not between one made from matter rather than anti-matter?  i.e. What is special about charge, and why aren't lepton number, baryon number, strangeness etc, also black hole properties? Which are the word orders that can be found in English? Is your MAC address revealed when you hit up a website? When you hit up a site, such as cnn.com, does the TCP/IP packet contain the MAC address of your network card?  Could cnn.com theoretically record my MAC address? Mandatory excerpt for custom post type Find conditional expectation from a 3-dimensional random vector? Finite Index of Subgroup of Subgroup Prove the following: If $H$ is a subgroup of finite index in a group $G$, and $K$ is a subgroup of $G$ containing $H$, then $K$ is of finite index in $G$ and $[G:H] = [G:K][K:H]$.  So this is basically a bijective proof? The number of cosets of $H$ in $G$ equals the number of cosets of $K$ in $G$ times the number of cosets of $H$ in $K$ by the multiplication principle?   Reference: Fraleigh p. 103  Question 10.35 in A First Course in Abstract Algebra How can I easily clone my entire system? I am running an Ubuntu 14.04 LTS and I experienced some issues with my hard drive. I bought a new HDD of the same size (1TB), and I intend to move all my data (softs, work, pics, etc.) on the new HDD.  What is the easiest way to do that? Derivation of the general forms of partial fractions I'm learning about partial fractions, and I've been told of 3 types or "forms" that they can take  (1) If the denominator of the fraction has linear factors:  $${5 \over {(x - 2)(x + 3)}} \equiv {A \over {x - 2}} + {B \over {x + 3}}$$  (2) If the denominator of the fraction has quadratic factors that don't factorise:  $${{2x + 3} \over {(x - 1)({x^2} + 4)}} \equiv {A \over {x - 1}} + {{Bx + C} \over {{x^2} + 4}}$$  (3) If the denominator has a factor that repeats:  $${{5x + 3} \over {(x - 2){{(x + 3)}^2}}} \equiv {A \over {x - 2}} + {B \over {x + 3}} + {C \over {{{(x + 3)}^2}}}$$    I'd appreciate it if someone could explain to me how these equivalence relationships are derived, essentially how do they take the forms that they do? I sort of understand the first one, but the other two I don't.  Thank you Can we say that $\frac{0}{0}$ is every number? How can one prove that numbers of the form $4x^2+1$ can only be divided by primes of the form $4y+1$ (e.g. there is no $x$ for which $7$ divides $4x^2+1$)?   On a quick lookup, the statement is given as the first comment in  and of course, manual testing concurs with this Sometimes, when I upgrade a system via do-release-upgrade, the update process fails and the script tells me to finish the process manually via dpkg --configure -a. This is a not serious problem - after manually solving the dependencies problem and the finishing upgrade process all works well.  But the do-release-upgrade script has a cleanup process after finishing the upgrade:  Remove obsolete packages?   XXX packages are going to be removed.   Continue [yN]  Details [d]y   which removes some obsolete packages from old version of system.  Seems that this process doesn't execute when the automatic upgrade fails and I finish upgrade manually, so obsolete packages from old version remain installed in the system.  How I can run the "Remove obsolete packages" process manually after finishing the upgrade by hand? How to do a secure erase on a Macbook Pro? I have a Macbook Pro with SSD and I would like to completely erase every single bits of data on it. How would I do that? On a PC, I would just run Darik's Boot And Nuke, but can I run it on a Mac too, or is there a better alternative? Show that $E(X)=\int_{0}^{\infty}P(X\ge x)\,dx$ for non-negative random variable $X$ Show that for a non-negative random variable $X$,   $$\mathbb E(X)=\int_0^\infty \mathbb P(X\ge x) \, dx.$$   I started with  $$\mathbb E(X)=\int_0^\infty x \, dF(x)=\int_0^\infty \int_0^x dt\,dF(x).$$ This is my try. Accidentally hit "toggle full screen", How do I exit? I'm stuck in full screen in the node editor. Escape isn't working, and I have no menus and no idea how to leave except to quit Blender and reopen the program. Control cannot fall through from one case label How can I add a bookmark in my nautilus folder explorer In Ubuntu 11 I just dragged the folder there.  This seems to be not possible on my new Samsung ultrabook with Ubuntu 12.04   I've tried Ctrl+D and using the top menu but nothing happens and no error messages, just nothing.  How can I add a bookmark?