我正在尝试在 Ubuntu 22.04.1 LTS 上安装docker-desktop
。但是,当我尝试运行以下命令时,它显示错误。
sudo apt install ./docker-desktop-*-amd64.deb
该命令的输出是:
Reading package lists...
Done Building dependency tree...
Done Reading state information...
Done
Note, selecting 'docker-desktop' instead of './docker-desktop-4.12.0-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: pass but it is not installable
Depends: uidmap but it is not installable
E: Unable to correct problems, you have held broken packages.
Reading package lists...
Done
我已经安装了docker
:
$ docker -v
Docker version 23.0.0, build e92dd87
答案1
似乎您没有universe
启用存储库。使用以下命令启用:
sudo add-apt-repository universe
这应该可以安装剩余的软件包(pass
和uidmap
)。