Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Linux » Linux Error 13: Permission denied, are you root
  • Ping 3
    How to convert images from PNG to JPG on WordPress, Windows, and Mac JIRA|Confluence|Apps
  • Keb
    How to configure a service account for Kerberos delegation Windows Server
  • Wordpress
    How to Install and Configure WordPress on Your Windows Computer Using WAMP SERVER Web Server
  • OpenVz
    OpenVZ template on Proxmox Server: How to Guide Virtualization
  • Windows Logo
    Restrict IP Address Range on Windows PC Windows
  • App Locker
    Harden your Veeam Backup Server with Microsoft AppLocker Windows
  • LiveCaption
    Enable or disable automatic Google Chrome Live Caption on macOS Mac
  • GitLabrunner 1 1
    There has been a runner system failure: failed to start the process exec “pwsh” Containers

Linux Error 13: Permission denied, are you root

Posted on 29/05/201612/08/2023 Christian By Christian No Comments on Linux Error 13: Permission denied, are you root
Linux error

This Linux Error 13 error simply means you are not the root user.

me@linuxbox ~#apt-get update
E: Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Solution
simply install it using the sudo to install any package as a root user.
This occurs because you are using a normal user account

The encountered error message, “E: Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied),” typically occurs when trying to perform package management tasks in Linux without the necessary root privileges. This issue, often denoted as “Linux Error 13,” indicates that the system is preventing access to the essential dpkg lock file, which is crucial for managing software packages.

To resolve this error, ensure that you have superuser privileges by using the “sudo” command before the package management operation. For instance, you can employ the following command: “sudo apt-get update” to refresh the package list. By appending “sudo” to your package management commands, you gain the necessary authorization to access system files and overcome the permission denied obstacle.

Remember, maintaining proper permissions is vital for a secure and stable Linux system. So, whenever you encounter “Linux Error 13,” simply prepend “sudo” to your package management commands to ensure successful execution.

You forgot the sudo for the second command.
me@linuxbox ~#sudo apt-get update && sudo apt-get upgrade will work.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Linux Tags:errors, Linux distro, Permission

Post navigation

Previous Post: How to extend Proxmox Local Container Storage
Next Post: How to remove Recent vSphere Client Connections

Related Posts

  • wine 2 1
    How to install and uninstall WineHQ on Linux Linux
  • unionfsfeature
    How to Overlay two files with UnionFs in a Linux System Linux
  • lampstack feature lamp stack ubuntu
    How to Install LAMP Stack on Ubuntu 18.04 Linux
  • SU
    How to switch users in Linux Linux
  • SSL on WAMPServer
    Setup VirtualHost with SSL on WAMP Server Linux
  • chamedk8s featured
    Install CNF Certified Kubernetes in AWS AWS/Azure/OpenShift

More Related Articles

wine 2 1 How to install and uninstall WineHQ on Linux Linux
unionfsfeature How to Overlay two files with UnionFs in a Linux System Linux
lampstack feature lamp stack ubuntu How to Install LAMP Stack on Ubuntu 18.04 Linux
SU How to switch users in Linux Linux
SSL on WAMPServer Setup VirtualHost with SSL on WAMP Server Linux
chamedk8s featured Install CNF Certified Kubernetes in AWS AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • Ping 3
    How to convert images from PNG to JPG on WordPress, Windows, and Mac JIRA|Confluence|Apps
  • Keb
    How to configure a service account for Kerberos delegation Windows Server
  • Wordpress
    How to Install and Configure WordPress on Your Windows Computer Using WAMP SERVER Web Server
  • OpenVz
    OpenVZ template on Proxmox Server: How to Guide Virtualization
  • Windows Logo
    Restrict IP Address Range on Windows PC Windows
  • App Locker
    Harden your Veeam Backup Server with Microsoft AppLocker Windows
  • LiveCaption
    Enable or disable automatic Google Chrome Live Caption on macOS Mac
  • GitLabrunner 1 1
    There has been a runner system failure: failed to start the process exec “pwsh” Containers

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.