After a day of docker installation, my scalp is tingling
Since it is a newly installed system, it lacks a bunch of dependencies
The first problem is the lack of dependencies
Selecting previously unselected package docker-desktop. (Reading database ... 203269 files and directories currently installed.) Preparing to unpack docker-desktop-4.10.1-amd64.deb ... Unpacking docker-desktop (4.10.1-82475) ... dpkg: dependency problems prevent configuration of docker-desktop: docker-desktop depends on curl; however: Package curl is not installed. docker-desktop depends on qemu-system-x86 (>= 5.2.0); however: Package qemu-system-x86 is not installed. docker-desktop depends on docker-ce-cli; however: Package docker-ce-cli is not installed. docker-desktop depends on pass; however: Package pass is not installed. docker-desktop depends on uidmap; however: Package uidmap is not installed. dpkg: error processing package docker-desktop (--install): dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.36.0-1ubuntu1) ... Processing triggers for desktop-file-utils (0.24-1ubuntu3) ... Processing triggers for mime-support (3.64ubuntu1) ... Errors were encountered while processing: docker-desktop
# Problem 1: The solution to a large number of package dependencies missing
Error: dpkg: dependency problems prevent configuration of docker-desktop:
As a novice, this dense error report made me confused at first. At first, I made a mistake about the missing package and regarded the processing triggers as the missing package. Later, I found out that the missing package has already been given above.
So start installing one by one
$ sudo apt-get install qemu-system-x86 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: docker-desktop : Depends: docker-ce-cli but it is not installable Depends: pass but it is not going to be installed Depends: uidmap qemu-system-x86 : Depends: libaio1 (>= 0.3.93) but it is not going to be installed Depends: libcacard0 (>= 2.2) but it is not going to be installed Depends: libfdt1 (>= 1.5.1) but it is not going to be installed Depends: libibverbs1 (>= 28) but it is not going to be installed Depends: libpmem1 (>= 1.4) but it is not going to be installed Depends: librdmacm1 (>= 1.0.15) but it is not going to be installed Depends: libslirp0 (>= 4.0.0) but it is not going to be installed Depends: libspice-server1 (>= 0.14.2) but it is not going to be installed Depends: libusbredirparser1 (>= 0.6) but it is not going to be installed Depends: libvirglrenderer1 (>= 0.8.2) but it is not going to be installed Depends: qemu-system-common (> 1:2.12~) but it is not going to be installed Depends: qemu-system-data (> 1:4.2-3ubuntu6.23~) but it is not going to be installed Depends: ipxe-qemu-256k-compat-efi-roms but it is not going to be installed Depends: seabios (>= 1.10.2-1~) but it is not going to be installed Depends: ipxe-qemu (>= 1.0.0+git-20131111.c3d1e78-1~) but it is not going to be installed Recommends: qemu-system-gui (= 1:4.2-3ubuntu6.23) but it is not going to be installed Recommends: qemu-utils but it is not going to be installed Recommends: ovmf but it is not going to be installed Recommends: cpu-checker but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Good guy, press the gourd to make the scoop, where did I install it manually, so I checked the information and found this method
$ sudo apt-get install -f
This line of code should be written immediately after the output, and it will supplement the missing from the previous instruction.
I'm very happy that I found a solution, but I didn't expect it to be just the beginning of this sad afternoon
# Question 2 Need to update after changing the source
Something strange started happening when I started downloading the qemu-system-X86 package
$ sudo apt-get install get qemu-system-X86
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package qemu-system-X86
This problem is still quite easy to search, and it is solved with a single click, that is, two codes need to be executed every time the source is changed.
sudo apt-get update
sudo apt-get upgrade
# Question 3 The nonsense question that has plagued me for an afternoon: where is docker-ce-cli?
guan@X12DAi-N6:~/docker$ sudo apt-get install ./docker-desktop-4.10.1-amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'docker-desktop' instead of './docker-desktop-4.10.1-amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
docker-desktop : Depends:
E: Unable to correct problems, you have held broken packages.
That's the question: ! ! ! ! !
Depends: docker-ce-cli but it is not installable
This package is called docker-ce-cli. I didn't do anything when I downloaded it.
g@-X12DAi-N6:~/Downloads$ sudo apt-get install docker-ce-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package docker-ce-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'docker-ce-cli' has no installation candidate
Even after rummaging through the blog, no one said this, I fell into extreme doubt and spent an afternoon in confusion
However, in the end when I switched the following mirrors, the result, the result! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
It actually downloaded! ! ! ! ! ! !
The original image is incomplete! ! ! ! ! ! !
The original image is incomplete! ! ! ! ! ! ! The original image is incomplete! ! ! ! ! ! ! The original image is incomplete! ! ! ! ! ! !
So that although the problem is finally solved, I still can't believe it, it turned out to be the problem of mirroring