I'm trying to get my Linux environment updated with the latest R packages which is proving to be quite difficult. The R version on my Linux machine is 3.2.3 (Wooden Christmas-Tree), and despite 2-days of troubleshooting I still cannot get the update commands to execute. An updated version of R is required before the bioconductor suite can download (“A new version of Bioconductor is available after installing the most recent version of R; see http://bioconductor.org/install”).
Typically, two simple commands will update R in Linux:
sudo apt-get update
sudo apt-get install r-base
However, I cannot get the sudo apt-get update to work, I keep getting the following error message:
E: Could not get lock /var/lib/apt/lists/lock - open (11:Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/
From what I’ve read on the web, to fix the problem, you must remove the lock files using the commands below:
sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock
After that, reconfigure the packages:
sudo dpkg --configure -a
But it doesn't work!?! Anyone else using Linux ever experience a similar error message?