简体   繁体   中英

Unable to install box2d

I run this command:

apt-get install python-box2d

and I get the following output:

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?

Always prefix sudo before executing any installation related command no matter if it's pip or aptik , it tells the terminal that you have the authority to make this change (installation). For example:

sudo apt-get update It's for updating your repository , and so it needs to be authorized to get executed.

Also sometimes this error occurs when some other installation is in progress and it has locked the main directory , So you just have to wait for that process or installation to get completed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM