우분투(Ubuntu) 패키지 잠금(dpkg/apt lock) 해제 및 복구

💡 핵심 요약 (Executive Summary)

본 가이드는 ubuntu 핵심 가이드 및 실전 아키텍처의 핵심 개념, 실전 구성 명령어 및 아키텍처 베스트 프랙티스를 다룹니다. 클라우드 네이티브 및 인프라 엔지니어링 실무에 즉시 활용 가능하도록 체계적으로 정리했습니다.

📑 Table of Contents
root로 ssh 로그인이 불가능한 경우

vi /etc/ssh/sshd_config

bash
...
PermitRootLogin yes #if no
...

혹은 passwd가 설정되지 않았을 수 있다.

인터넷 연결 문제
Reference & Guidelines (NOTE)

nameserver 추가

  1. resolv.conf
bash
vi /etc/resolv.conf
   nameserver 8.8.8.8
  1. netplan (resolv는 시스템 구성시 변경될 수 있음)
bash
vi /etc/netplan/50-cloud-init.yaml
   ---
   network:
       version: 2
       ethernets:
           ens3:
               dhcp4: true
               match:
                   macaddress: fa:16:3e:f1:76:e5
               mtu: 1450
               set-name: ens3
   +++ 추가
               nameservers:
                 addresses: [8.8.8.8]
   +++
   ---

   # 적용 
   netplan apply

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *