问题
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
解决方法
https://blog.csdn.net/mao_hui_fei/article/details/107081870
┌──(kali㉿kali)-[~]
└─$ sudo passwd root //输入
New password: //直接输入就行,它不显示的
Retype new password: //直接输入就行,它不显示的
passwd: password updated successfully
┌──(kali㉿kali)-[~]
└─$ su //输入
Password:
┌──(root㉿kali)-[/home/kali]
└─# apt-get install gem //已经变成root权限了,继续刚才你要的安装