Skip to main content

Solution to Could not get lock error in Ubuntu

Could not get lock /var/lib/dpkg/lock – Unable to lock the directory

Error can be removed by running following commands:

sudo rm /var/lib/dpkg/lock

sudo apt-get update

Comments

Popular posts from this blog

Improve Ubuntu Battery by installing TLP for Linux

Improve Ubuntu 18.04 Battery by installing TLP for Linux TLP  is a great command line tool for improving the battery performance for your laptop after installing Ubuntu 18.04 LTS. This advanced power management tool comes with automated background tasks which can help you get the most out of your battery. To install TLP in Ubuntu 18.04, sudo add-apt-repository ppa:linrunner/tlp sudo apt-get update sudo apt-get install tlp tlp-rdw sudo tlp start Most noteworthy is that the default settings would be the recommended one and you can be safe to assume that it would do well enough. Still, if you want to configure it, you can use the text editor of your choice to do so. Hence, to tweak the settings, enter the following command: sudo gedit /etc/default/tlp Consequently, you can refer the  TLP Documentation  to get a good idea in case you decide to configure the settings. Note:  Always be cautious when trying out different settings as effects may vary dep...

Fix Ubuntu Brightness with a software

Fix Brightness Using a Software If above method did not work, you can try below method using an app. This app called ‘ Brightness Controller ‘ is capable to control display using a simple GUI. It supports multiple display as well. The app is available in PPA. You can run below command to install it Ubuntu 16.10 Yakkety Yak, Ubuntu 16.04 Xenial Xerus. sudo add-apt-repository ppa:apandada1/brightness-controller sudo apt update sudo apt install brightness-controller For other download options you can refer this  page . After install you can find it under application menu or search it in Dash. Once opened you can see a bar which controls the display brightness which you can adjust as per your need.