Follow the guide <https://docs.rancherdesktop.io/g...
# rancher-desktop
c
Follow the guide https://docs.rancherdesktop.io/getting-started/installation/#linux, when I install Rancher Desktop on Ubuntu Server 24.04, got this error:
Copy code
$ sudo apt install rancher-desktop
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
 rancher-desktop:amd64 : Depends: pass:amd64 but it is not installable
                         Depends: libasound2:amd64 but it is not installable
                         Depends: libatk1.0-0:amd64 but it is not installable
                         Depends: libatk-bridge2.0-0:amd64 but it is not installable
                         Depends: libatspi2.0-0:amd64 but it is not installable
                         Depends: libc6:amd64 but it is not installable
                         Depends: libcairo2:amd64 but it is not installable
                         Depends: libcups2:amd64 but it is not installable
                         Depends: libdbus-1-3:amd64 but it is not installable
                         Depends: libdrm2:amd64 but it is not installable
                         Depends: libexpat1:amd64 but it is not installable
                         Depends: libgbm1:amd64 but it is not installable
                         Depends: libgcc1:amd64 but it is not installable
                         Depends: libgdk-pixbuf2.0-0:amd64 but it is not installable
                         Depends: libglib2.0-0:amd64 but it is not installable
                         Depends: libglib2.0-dev:amd64 but it is not installable
                         Depends: libgtk-3-0:amd64 but it is not installable
                         Depends: libnspr4:amd64 but it is not installable
                         Depends: libnss3:amd64 but it is not installable
                         Depends: libpango-1.0-0:amd64 but it is not installable
                         Depends: libx11-6:amd64 but it is not installable
                         Depends: libxcb1:amd64 but it is not installable
                         Depends: libxcomposite1:amd64 but it is not installable
                         Depends: libxdamage1:amd64 but it is not installable
                         Depends: libxext6:amd64 but it is not installable
                         Depends: libxfixes3:amd64 but it is not installable
                         Depends: libxkbcommon0:amd64 but it is not installable
                         Depends: libxrandr2:amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.
Then how to install?
p
Hmm, installing in a fresh docker image seems to work here. Can you try
apt update
first, or otherwise what does your
/etc/apt/sources.list.d/ubuntu.sources
look like? It sounds like it's failing to find a lot of things that Ubuntu normally provides.
c
@proud-jewelry-46860 I have did
apt update
. The
/etc/apt/sources.list.d/ubuntu.sources
is:
Copy code
Types: deb
URIs: <http://ports.ubuntu.com/ubuntu-ports/>
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: <http://ports.ubuntu.com/ubuntu-ports/>
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
p
Huh, which arch is that using? I'm expecting
<http://archive.ubuntu.com/ubuntu/>
in there. Are you running on a non-amd64 machine?
c
@proud-jewelry-46860 I think I'm using amd64 arch machine. But now I have changed to other solution.