그래서 그냥 안 썼다. -> Enable X11 forwarding은 당연히 체크해줄 것.
Error
apt install gedit
이후에 아래와 같은 에러 메시지가 뜬다.
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
Error Correction
(Ref. 2)활용.
Ubuntu 상에서
sudo passwd root
입력하여 비밀번호 설정해 주면 해결된다.
Story
*아, sudo 명령어가 잘 안 들어갔나? -> 한 땀 한 땀 정확히 입력 => 같은 Error message
*dpkg 오류인가? 재설치해봐야지 -> (Ref. 6)따라 해 봄. => 같은 Error message
apt install xclock
*다른 사람들은 위처럼 시계 띄우는 걸 예시로 설치하더라.
*왜 PuTTY 옵션에 X display location을 localhost로 하면 오히려 에러가 날까? => 결론 안남.
The fourth line, which dictates therootuser’ssudoprivileges, is different from the preceding lines. Let’s take a look at what the different fields mean:
rootALL=(ALL:ALL) ALLThe first field indicates the username that the rule will apply to (root).
rootALL=(ALL:ALL) ALLThe first “ALL” indicates that this rule applies to all hosts.
root ALL=(ALL:ALL) ALLThis “ALL” indicates that therootuser can run commands as all users.
root ALL=(ALL:ALL) ALLThis “ALL” indicates that therootuser can run commands as all groups.
root ALL=(ALL:ALL)ALLThe last “ALL” indicates these rules apply to all commands.
임을 알 수 있다.
#주의해 주세요.
본 글은 필자의 데스크톱 기준으로 작성되었으며 특정 설정상황에 따라 문제 해결이 되지 않을 수 있습니다.
본 게시판은 필자가 문제를 해결하는 과정을 "단순 메모" 한 것입니다. 공격적인 발언은 자제 부탁드립니다.