docker / docs

Source repo for Docker's Documentation
https://docs.docker.com
Apache License 2.0
4.16k stars 7.26k forks source link

Installation on Ubuntu seems out of date or completely incorrect #19072

Closed phpguru closed 9 months ago

phpguru commented 9 months ago

Is this a docs issue?

Type of issue

Information is incorrect

Description

Running this on Ubuntu 22.04 on AWS Workspace. First of all, the install mechanism you specify on this page,

sudo apt-get install ./docker-desktop-<version>-<arch>.deb

results in

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'docker-desktop' instead of './docker-desktop-4.26.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: docker-ce-cli but it is not installable
E: Unable to correct problems, you have held broken packages.

Second, if you get a .deb package from somewhere, you do

sudo dpkg -i <deb_path>

So I tried this and got

dpkg: dependency problems prevent configuration of docker-desktop:
 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.

I may be totally in the wrong, but should it really be this complicated to simply install Docker on Ubuntu desktop?

Location

https://docs.docker.com/desktop/install/ubuntu/

Suggestion

Even when I attempt to resolve dependencies manually one at a time I run into a long list of issues.

sudo dpkg -i docker-desktop-4.26.1-amd64.deb 
Selecting previously unselected package docker-desktop.
(Reading database ... 292043 files and directories currently installed.)
Preparing to unpack docker-desktop-4.26.1-amd64.deb ...
Unpacking docker-desktop (4.26.1-131620) ...
dpkg: dependency problems prevent configuration of docker-desktop:
 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 mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Errors were encountered while processing:
 docker-desktop

Hm, let's try qemu (x86? isn't that 32-bit?)

$ sudo apt install qemu-system-x86
Reading package lists... Done
Building dependency tree... Done
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 but it is not going to be installed
 qemu-system-x86 : Depends: libfdt1 (>= 1.6.1) but it is not going to be installed
                   Depends: libpmem1 (>= 1.4) but it is not going to be installed
                   Depends: libslirp0 (>= 4.0.0) but it is not going to be installed
                   Depends: qemu-system-common (= 1:6.2+dfsg-2ubuntu6.16) but it is not going to be installed
                   Depends: qemu-system-data (> 1:6.2+dfsg-2ubuntu6.16~) but it is not going to be installed
                   Depends: seabios but it is not going to be installed
                   Depends: ipxe-qemu but it is not going to be installed
                   Depends: ipxe-qemu-256k-compat-efi-roms but it is not going to be installed
                   Recommends: qemu-system-gui (= 1:6.2+dfsg-2ubuntu6.16) 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: qemu-block-extra (= 1:6.2+dfsg-2ubuntu6.16) 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).

Not sure what I am doing wrong. Docker Desktop is literally the first thing I tried to install on a freshly minted AWS Workspace, PowerPro, 32G of Memory, Ubuntu 22.04.

aevesdocker commented 9 months ago

Hi @phpguru, from the outputs you've provided, it looks like you've not followed some of the prerequisite steps on https://docs.docker.com/desktop/install/linux-install/#system-requirements and step one of https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository. If the issue persists, it may be a product issue, so please report in https://github.com/docker/for-mac/issues

docker-robot[bot] commented 8 months ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked