E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
sudo apt-get update && sudo apt-get -y upgrade; 할때 아래처럼 나오는 경우가 있다
RTogQ291bGQgbm90IG9wZW4gbG9jayBmaWxlIC92YXIvbGliL2Rwa2cvbG9jay1mcm9udGVuZCAtIG9wZW4gKDEzOiBQZXJtaXNzaW9uIGRlbmllZCkNCkU6IFVuYWJsZSB0byBhY3F1aXJlIHRoZSBkcGtnIGZyb250ZW5kIGxvY2sgKC92YXIvbGliL2Rwa2cvbG9jay1mcm9udGVuZCksIGFyZSB5b3Ugcm9vdD8=
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?
그럴땐 아래처럼 커맨드 치고난 후
a2lsbGFsbCBhcHQgYXB0LWdldA0Kc3VkbyBybSAvdmFyL2xpYi9hcHQvbGlzdHMvbG9jaw0Kc3VkbyBybSAvdmFyL2NhY2hlL2FwdC9hcmNoaXZlcy9sb2NrDQpzdWRvIHJtIC92YXIvbGliL2Rwa2cvbG9jayoNCnN1ZG8gZHBrZyAtLWNvbmZpZ3VyZSAtYQ==
killall apt apt-get
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
sudo dpkg --configure -a
다시 시도해보라
c3VkbyBhcHQtZ2V0IHVwZGF0ZSAmJiBzdWRvIGFwdC1nZXQgLXkgdXBncmFkZTs=
sudo apt-get update && sudo apt-get -y upgrade;