• Home
  • Become a Hacker
    • Get Started
    • Hacker Mindset
    • Roadmap
    • Simple Setup – Hacker 101
    • Types of Hackers
    • Recommended Courses
  • Boot People Offline
  • Courses
    • All Hacking Courses
    • Cyber Security School
  • CTF
    • Beginners to Advanced Guide
    • Create your own CTF box
    • Field and Resources Guide
    • Platforms & Wargames
    • Tools Used for Solving CTF
    • Writeups
  • Dark Web
    • Beginners Guide
    • Darknet Markets
    • Darkweb 101 (Anonymity Guide)
    • Dark Web OSINT Tools
    • Hacking Forums
    • Latest News
    • Onion Links
  • Hacker Gadgets
  • Hacking Books
  • Tools Directory
Menu
  • Home
  • Become a Hacker
    • Get Started
    • Hacker Mindset
    • Roadmap
    • Simple Setup – Hacker 101
    • Types of Hackers
    • Recommended Courses
  • Boot People Offline
  • Courses
    • All Hacking Courses
    • Cyber Security School
  • CTF
    • Beginners to Advanced Guide
    • Create your own CTF box
    • Field and Resources Guide
    • Platforms & Wargames
    • Tools Used for Solving CTF
    • Writeups
  • Dark Web
    • Beginners Guide
    • Darknet Markets
    • Darkweb 101 (Anonymity Guide)
    • Dark Web OSINT Tools
    • Hacking Forums
    • Latest News
    • Onion Links
  • Hacker Gadgets
  • Hacking Books
  • Tools Directory
Search
Close
  • Home
  • 2018
  • July
  • 3
  • Fix Could not get lock /var/lib/dpkg/lock – Resource temporarily unavailable

Fix Could not get lock /var/lib/dpkg/lock – Resource temporarily unavailable

July 3, 2018July 3, 2018 Comments Off on Fix Could not get lock /var/lib/dpkg/lock – Resource temporarily unavailable
Fix Could not get lock /var/lib/dpkg/lock – Resource temporarily unavailable unable to lock the administration directory

Fix get lock /var/lib/dpkg/lock – Resource temporarily unavailable

You been installing packages or updating your repositories and you run in an error message from apt. “Fix get lock /var/lib/dpkg/lock – Resource temporarily unavailable” this error can become quite annoying to beginners don’t worry I will show you how to remove the lock from /var/lib/dpkg/lock this will remove the lock and allow us to continue installing software and resources from Kali Linux repositories.

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?

Method 1:

First open up a new terminal and use the following command to remove the lock.

rm /var/lib/dpkg/lock

If the lock does not remove first time repeat the process above. The screen shot below shows the process of removing the lock as you can see the lock did not remove the first time and I had to repeat the process.

Use dpkg –configure -a to force packages to reconfigure.

sudo dpkg --configure -a

Method 2:

Alternatively you could look up the suspected processes using commands below. By using ps and grep together to create a pipeline we can easily look up suspected packages.

ps -A | grep apt

And then killing all processes that can seen in the output in terminal first you will need to look up the process number. it will by listed by the side of the processes that are running you then need to use the following commands to kill the processes.

sudo kill -6 processnum
Or we could alternatively use
sudo kill -SIGKILL processnum

get lock /var/lib/dpkg/lock – Resource temporarily unavailable

You may also like: Fix Update Errors in Kali Linux, Updating Official Repositories in Kali Linux

Post navigation

Layer 7 Dos: Dissecting Application Layer DDoS Attacks
Kali Linux Official Repo List – Fix Broken Installation

Related Articles

PassPie – Multiplatform Command-Line Password Manager

- Tricks & How To's
July 8, 2019

XGC – Xbox Gift Card Trick to get Cheaper Games

- News, Tricks & How To's
May 23, 2019

Machinae Security Intelligence Collector

- Threat Intelligence, Tricks & How To's
May 19, 2019July 27, 2019
hacker gadgets
hacker phone covers

Recent Posts

Concealed Code Execution: Tools and technical write-ups describing attacking techniques

Concealed Code Execution: Tools and technical write-ups describing attacking techniques

August 16, 2022
VLANPWN - VLAN Attacks Toolkit

VLANPWN – VLAN Attacks Toolkit

August 16, 2022
dnstwist v20201228 releases: Domain name permutation engine for detecting typo squatting, phishing and corporate espionage

dnstwist v20220815 releases: Domain name permutation engine for detecting typo squatting, phishing and corporate espionage

August 16, 2022
RPCMon: RPC Monitor tool based on Event Tracing for Windows

RPCMon: RPC Monitor tool based on Event Tracing for Windows

August 16, 2022
Woman Sentenced to 151 Months in Prison for Selling GHB

Woman Sentenced to 151 Months in Prison for Selling GHB

August 16, 2022
riskscanner: Open source multi-cloud security compliance scanning platform

riskscanner: Open source multi-cloud security compliance scanning platform

August 15, 2022

Social Media Hacking

SocialPath – Track users across Social Media Platforms

SocialPath – Track users across Social Media Platforms

- Social Media Hacking
October 16, 2019October 16, 2019

SocialPath is a django application for gathering social media intelligence on specific username. It checks for Twitter, Instagram, Facebook, Reddit...

SocialScan – Check Email Address and Username Availability on Online Platforms

SocialScan – Check Email Address and Username Availability on Online Platforms

June 17, 2019
Shellphish – Phishing Tool For 18 Social Media Apps

Shellphish – Phishing Tool For 18 Social Media Apps

June 10, 2019July 27, 2019
WhatsApp Hacking using QRLJacking

WhatsApp Hacking using QRLJacking

May 2, 2019May 19, 2019
How to Hack any Facebook Account with Z-Shadow

How to Hack any Facebook Account with Z-Shadow

April 26, 2019June 29, 2020
hacker buffs

About Us

Haxf4rall is a collective, a good starting point and provides a variety of quality material for cyber security professionals.

Join Our Community!

Please wait...
Get the latest News and Hacking Tools delivered to your inbox.
Don't Worry ! You will not be spammed

Active Members

Submit a Tool

Hackers Handbook 2018


Grab your copy here

ABOUT US

Haxf4rall is a collective, a good starting point and provides a variety of quality material for cyber security professionals.

Our primary focus revolves around the latest tools released in the Infosec community and provide a platform for developers to showcase their skillset and current projects.

COMPANY
  • Contact Us
  • Disclaimer
  • Hacker Gadgets
  • LANC Remastered
  • PCPS IP Puller
  • Privacy Policy
  • Sitemap
  • Submit your Tool
Menu
  • Contact Us
  • Disclaimer
  • Hacker Gadgets
  • LANC Remastered
  • PCPS IP Puller
  • Privacy Policy
  • Sitemap
  • Submit your Tool
Live Chat
RESOURCES
  • Attack Process
  • Become a Hacker
  • Career Pathways
  • Dark Web
  • Hacking Books
  • Practice Your Skills
  • Recommended Courses
  • Simple Setup – Hacker 101
Menu
  • Attack Process
  • Become a Hacker
  • Career Pathways
  • Dark Web
  • Hacking Books
  • Practice Your Skills
  • Recommended Courses
  • Simple Setup – Hacker 101
Get Started
TOOLBOX
  • Anonymity
  • Bruteforce
  • DoS – Denial of Service
  • Information Gathering
  • Phishing
  • SQL Injection
  • Vulnerability Scanners
  • Wifi Hacking
Menu
  • Anonymity
  • Bruteforce
  • DoS – Denial of Service
  • Information Gathering
  • Phishing
  • SQL Injection
  • Vulnerability Scanners
  • Wifi Hacking
Tools Directory

2014 – 2020 | Haxf4rall.com               Stay Connected:

Facebook Twitter Google-plus Wordpress
Please wait...

Join Our Community

Subscribe now and get your free HACKERS HANDBOOK

Don't Worry ! You will not be spammed
SIGN UP FOR NEWSLETTER NOW