우분투 22.04 버전 apt-get update 에러 솔루션

2023. 4. 15. 14:37·Tips

1.

mkdir ~/solution
cd ~/solution/

 

2.

vi로 ~/solution/sources.list 연 다음에 아래 내용 넣고 저장

deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner

 

3.

sudo mv /etc/apt/sources.list.d/* ~/solution

sudo apt update

 

 

+) update는 잘 되는데, install 하고자 하는 것들을 apt-get 혹은 apt로 설치하면 잘 안된다. 

sudo apt-get install -y aptitude로 aptitude를 깔고 apt-get 대신 aptitude로 사용하면 apt-get을 대체하여 설치할 수 있다

저작자표시 비영리 변경금지 (새창열림)
'Tips' 카테고리의 다른 글
  • Ubuntu 기초 셋팅 명령어 모음 ( 한 큐에 해결하기 )
  • (Cryptography) Python3 Sage 모듈 설치 & pwntools과 연동
  • Ubuntu 기초 세팅 명령어 완전 정리
  • [VMware] apt update 안될 때
Cronus
Cronus
Offensive Security Researcher
  • Cronus
    Cronus
    Striving to be the best.
    • 분류 전체보기 (251)
      • AboutMe (1)
      • Portfolio (1)
        • Things (1)
      • Bug Report (1)
      • 🚩 CTF (23)
        • Former Doc (9)
        • 2023 (9)
      • 💻 Security (5)
      • 🖌️ Theory (22)
        • WEB (9)
        • PWN (13)
      • 📄 Project (6)
        • Edu_Siri (6)
      • Dreamhack (156)
        • WEB (95)
        • PWN (41)
        • Crypto (14)
        • ETC (6)
      • Wargame (22)
        • HackCTF (22)
      • Bug Bounty (1)
        • Hacking Zone (1)
      • Tips (7)
      • Development (2)
        • Machine Learning & Deep Lea.. (1)
      • Offensive Tools (1)
  • 블로그 메뉴

    • 홈
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    Ubuntu 기초
    bug hunter
    Remote Code Execution
    pwntools
    Crypto
    RCE
    Text Summarization
    justCTF
    ubuntu 명령어
    GPNCTF
    python
    cache
    Ubuntu 기초 셋팅
    sqli
    Deep learning
    TsukuCTF2022
    TFCCTF2022
    Machine Learning
    cache poisoning
    bug report
  • 최근 댓글

  • 최근 글

Cronus
우분투 22.04 버전 apt-get update 에러 솔루션
상단으로

티스토리툴바