
TL;DR deb 파일이 완전하고 오류가 없는지 어떻게 확인합니까?
설치 시 오류가 발생하는 deb 패키지의 불완전한 다운로드가 있습니다. 설치하기 전에 유효한지 확인하고 싶습니다. 에서 언급한 바와 같이설치 전 deb 패키지 검사 및 유효성 검사 방법, 사용할 수 있지만 dpkg-deb --info <deb file>
이는 모든 정보를 제공하지만 내 파일에는 오류가 표시되지 않습니다.
내 특별한 경우에는 다음 파일이 있습니다.
# file is actually ~40MB, download the first 27MB
curl -r 0-28208916 https://download.docker.com/linux/ubuntu/dists/jammy/pool/stable/amd64/docker-ce-cli_20.10.21~3-0~ubuntu-jammy_amd64.deb
다음은 deb의 정보를 보여주지만 불완전한 파일을 보고하지는 않습니다.
dpkg-deb --info docker-ce-cli_20.10.21~3-0~ubuntu-jammy_amd64.deb
dpkg-deb 명령의 출력,
new Debian package, version 2.0.
size 28208917 bytes: control archive=5436 bytes.
1059 bytes, 24 lines control
14836 bytes, 195 lines md5sums
Package: docker-ce-cli
Source: docker-ce
Version: 5:20.10.21~3-0~ubuntu-jammy
Architecture: amd64
Maintainer: Docker <[email protected]>
Installed-Size: 145640
Depends: libc6 (>= 2.34)
Recommends: docker-scan-plugin
Conflicts: docker (<< 1.5~), docker-engine, docker-engine-cs, docker.io, lxc-docker, lxc-docker-virtual-package
Breaks: docker-ce (<< 5:0)
Replaces: docker-ce (<< 5:0)
Section: admin
Priority: optional
Homepage: https://www.docker.com
Description: Docker CLI: the open-source application container engine
Docker is a product for you to build, ship and run any application as a
lightweight container
.
Docker containers are both hardware-agnostic and platform-agnostic. This means
they can run anywhere, from your laptop to the largest cloud compute instance and
everything in between - and they don't require you to use a particular
language, framework or packaging system. That makes them great building blocks
for deploying and scaling web apps, databases, and backend services without
depending on a particular stack or provider.