DrawingProcess
드프 DrawingProcess
DrawingProcess
전체 방문자
오늘
어제
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
  • 분류 전체보기 (964)
    • Profile & Branding (22)
      • Career (15)
    • IT Trends (254)
      • Conference, Faire (Experien.. (31)
      • News (187)
      • Youtube (19)
      • TED (8)
      • Web Page (2)
      • IT: Etc... (6)
    • Contents (97)
      • Book (66)
      • Lecture (31)
    • Project Process (94)
      • Ideation (0)
      • Study Report (34)
      • Challenge & Award (22)
      • 1Day1Process (5)
      • Making (5)
      • KRC-FTC (Team TC(5031, 5048.. (10)
      • GCP (GlobalCitizenProject) (15)
    • Study: ComputerScience(CS) (72)
      • CS: Basic (9)
      • CS: Database(SQL) (5)
      • CS: Network (14)
      • CS: OperatingSystem (3)
      • CS: Linux (39)
      • CS: Etc... (2)
    • Study: Software(SW) (95)
      • SW: Language (29)
      • SW: Algorithms (1)
      • SW: DataStructure & DesignP.. (1)
      • SW: Opensource (15)
      • SW: Error Bug Fix (43)
      • SW: Etc... (6)
    • Study: Artificial Intellige.. (149)
      • AI: Research (1)
      • AI: 2D Vision(Det, Seg, Tra.. (35)
      • AI: 3D Vision (70)
      • AI: MultiModal (3)
      • AI: SLAM (0)
      • AI: Light Weight(LW) (3)
      • AI: Data Pipeline (7)
      • AI: Machine Learning(ML) (1)
    • Study: Robotics(Robot) (33)
      • Robot: ROS(Robot Operating .. (9)
      • Robot: Positioning (8)
      • Robot: Planning & Control (7)
    • Study: DeveloperTools(DevTo.. (83)
      • DevTool: Git (12)
      • DevTool: CMake (13)
      • DevTool: NoSQL(Elastic, Mon.. (25)
      • DevTool: Container (17)
      • DevTool: IDE (11)
      • DevTool: CloudComputing (4)
    • 인생을 살면서 (64)
      • 나의 취미들 (7)
      • 나의 생각들 (42)
      • 여행을 떠나자~ (10)
      • 분기별 회고 (5)

개발자 명언

“ 매주 목요일마다 당신이 항상 하던대로 신발끈을 묶으면 신발이 폭발한다고 생각해보라.
컴퓨터를 사용할 때는 이런 일이 항상 일어나는데도 아무도 불평할 생각을 안 한다. ”

- Jef Raskin

맥의 아버지 - 애플컴퓨터의 매킨토시 프로젝트를 주도

인기 글

최근 글

최근 댓글

티스토리

hELLO · Designed By 정상우.
DrawingProcess

드프 DrawingProcess

Study: Software(SW)/SW: Error Bug Fix

[Error Fix] E: Sub-process /usr/bin/dpkg returned an error code (1) 오류 해결: broken package

2023. 4. 30. 17:12
반응형

# 문제 상황

apt 패키지 관리에 문제가 생겨 apt install 하는 과정에서 다음과 같은 오류가 발생하였습니다.

countered while processing:
 update-notifier-common
 update-notifier
 update-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)

# 해결 방안

$ cd /var/lib/dpkg
$ sudo mv info info.bak
$ sudo mkdir info
$ sudo apt-get upgrade

 

이런식으로 해결하고 나니 다음과 같은 문제가 발생하였습니다. dpkg로 찾을 수 있는 모든 패키지를 찾을 수 없는 문제 인 것 같습니다.

$ dpkg -S /usr/lib/python3/dist-packages/zmq
...
dpkg: warning: files list file for package 'crda' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'readline-common' missing; assuming package has no files currently installed
...

이는 다음과 같은 warning 메시지가 뜨는 모든 package를 재설치해주는 방법으로 해결할 수 있습니다(하지만 이게 맞나...?).

for package in $(sudo apt-get install catdoc 2>&1 | grep "warning: files list file for package '" | grep -Po "[^'\n ]+'" | grep -Po "[^']+");
do
  sudo apt-get -y install --reinstall "$package"
done

# 참고

  • [Stack Exchange] broken packages (update-notifier, update managticer) that disrupts all kind of installation using apt or apt-get or dpkg or even synap: https://askubuntu.com/questions/1164103/broken-packages-update-notifier-update-managticer-that-disrupts-all-kind-of-i
  • [Stack Exchange] dpkg warning files list file for package missing: https://askubuntu.com/questions/949760/dpkg-warning-files-list-file-for-package-missing
반응형
저작자표시 비영리 변경금지

'Study: Software(SW) > SW: Error Bug Fix' 카테고리의 다른 글

[Error Fix] 'exec: "docker-credential-desktop.exe": executable file not found in $PATH' 오류 해결(feat. ~/.docker/config.js)  (0) 2023.05.02
[Error Fix] ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' 오류 해결: jupyter notebook 실행시 발생  (0) 2023.05.01
[Error Fix] 'CMake find_package' 문제 해결(feat. MacOS Qt5 FindQt5.cmake)  (0) 2023.04.10
[Error fix] 'Java file outside of source root' 오류 해결  (0) 2023.02.13
[Error fix] Mac에서 ~/.bashrc 적용이 안되는 오류 해결(feat. zsh)  (0) 2023.01.23
    'Study: Software(SW)/SW: Error Bug Fix' 카테고리의 다른 글
    • [Error Fix] 'exec: "docker-credential-desktop.exe": executable file not found in $PATH' 오류 해결(feat. ~/.docker/config.js)
    • [Error Fix] ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' 오류 해결: jupyter notebook 실행시 발생
    • [Error Fix] 'CMake find_package' 문제 해결(feat. MacOS Qt5 FindQt5.cmake)
    • [Error fix] 'Java file outside of source root' 오류 해결
    DrawingProcess
    DrawingProcess
    과정을 그리자!

    티스토리툴바