Posts

Showing posts from August, 2018

Linux Tips: Cannot update cache in update manager

Linux Tips: Cannot update cache in update manager If you've encountered one or more "fail" error message (because files are  missing from your selected repositories) when you try to refresh your cache (when using the update manager/apt-get - under Ubuntu/Linux mint), do this: # apt-get upgrade --fix-missing / ********* i) If after running the above command, you're getting the error messages that are similar to "could not get lock - open", do this: // Search for apt process & kill it # ps -A | grep apt # kill -9  [processnumber] //  Remove file lock from apt list #  cd /var/lib/apt/lists/ #  rm -rf lock //  Remove file lock from apt archives #  cd /var/cache/apt/archives/ #  rm -rf lock // Update packages sources list # apt-get update Refresh your update manager. / ********* ii) If after running the above command, you're getting the error message or similar: //-  Errors were encountered while processing

Linux Tips: How to add a default startup application for certain files (.i.e by file extension)

Linux Tips: How to add a default startup application for certain files (.i.e by file extension) If you're using Ubuntu or Linux mint, you might have encountered the situation where your default helper application is not listed (eg: for .doc files). Step 1: // In this example, we're trying to open myfile.doc by just clicking on it on the // desktop. # mimeopen myfile.doc You should see something like the below: Please choose a default application for files of type application/msword     1) Other... use application # Step 2: // Select the option: Other # 1 Next, you should see: use command: Step 3: // Type in the full path to your command use command: /home/mypath/libreoffice/soffice Next, you should see: Opening "myfile.doc" with home  (application/msword)