apt安装包报错
收藏回复举报
apt安装包报错
t('forum.solved') 已解决
发表于2026-01-16 14:50:43
0 查看

使用ubuntu镜像

ubuntu-22.04-live-server-arm64.iso

Sample-root-filesystem-soc_ubuntu-22.04-aarch64.img

Ascend-hdk-310b-sdk-soc_24.1.0.zip

制作的镜像,安装软件包的时候提示如下错误,

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:
 dbus-x11 : Depends: libdbus-1-3 (= 1.12.2-1ubuntu1.4) but 1.12.20-2ubuntu4 is to be installed
 debianutils : Breaks: x11-common (< 1:7.7+23~) but 1:7.7+19ubuntu7.1 is to be installed
 evolution-data-server : Depends: gnome-keyring but it is not installable
 gir1.2-freedesktop : Depends: gir1.2-glib-2.0 (= 1.56.1-1) but 1.72.0-1 is to be installed
 gir1.2-polkit-1.0 : Depends: libpolkit-agent-1-0 (= 0.105-20ubuntu0.18.04.6) but 0.105-33 is to be installed
                     Depends: libpolkit-gobject-1-0 (= 0.105-20ubuntu0.18.04.6) but 0.105-33 is to be installed
 gjs : Depends: libgjs0-libmozjs-52-0
       Depends: libgjs0g (>= 1.52.5) but it is not installable
 gnome-shell : Depends: libgjs0-libmozjs-52-0
               Depends: libgjs0g (>= 1.52.5) but it is not installable
               Recommends: xserver-xorg-legacy
               Recommends: gkbd-capplet but it is not installable
               Recommends: gnome-control-center but it is not installable
               Recommends: ubuntu-session but it is not installable or
                           gnome-session but it is not installable
 gstreamer1.0-packagekit : Depends: packagekit (= 1.1.9-1ubuntu2.18.04.6) but 1.2.5-2ubuntu2 is to be installed
 libcairo-gobject-perl : Depends: perlapi-5.26.1
                         Depends: libcairo-perl but it is not going to be installed
 libegl-mesa0 : Depends: libx11-xcb1 but it is not installable
 libenchant1c2a : Depends: aspell-en but it is not installable or
                           myspell-dictionary or
                           aspell-dictionary or
                           ispell-dictionary or
                           hunspell-dictionary
 libglib-perl : Depends: perlapi-5.26.0
 libglx-mesa0 : Depends: libx11-xcb1 but it is not installable
 libgstreamer-gl1.0-0 : Depends: libx11-xcb1 but it is not installable
 libgtk3-perl : Depends: libglib-object-introspection-perl (>= 0.043) but it is not installable
 libmutter-2-0 : Depends: libx11-xcb1 but it is not installable
 libstartup-notification0 : Depends: libx11-xcb1 but it is not installable
 nautilus : Depends: gvfs (>= 1.3.2) but it is not installable
            Recommends: gvfs-backends but it is not installable
 software-properties-gtk : Depends: python3-software-properties (= 0.96.24.32.22) but 0.99.22 is to be installed
                           Depends: ubuntu-advantage-tools (>= 27.11~) but 17 is to be installed
                           Recommends: gnome-keyring but it is not installable
 ubuntu-desktop : Depends: gnome-control-center but it is not installable
                  Depends: pulseaudio but it is not installable
                  Depends: ubuntu-session but it is not installable
                  Recommends: file-roller but it is not installable
                  Recommends: firefox but it is not installable
                  Recommends: gedit but it is not installable
                  Recommends: gnome-keyring but it is not installable
                  Recommends: gvfs-fuse but it is not installable
                  Recommends: hplip but it is not installable
                  Recommends: orca but it is not installable
                  Recommends: plymouth-theme-ubuntu-logo but it is not installable
                  Recommends: pppoeconf but it is not installable
                  Recommends: pulseaudio-module-bluetooth but it is not installable
                  Recommends: remmina but it is not installable
                  Recommends: seahorse but it is not installable
                  Recommends: simple-scan but it is not installable
                  Recommends: system-config-printer but it is not installable
                  Recommends: thunderbird but it is not installable
                  Recommends: thunderbird-gnome-support but it is not installable
 ubuntu-release-upgrader-gtk : Depends: ubuntu-release-upgrader-core (= 1:18.04.45) but 1:22.04.10 is to be installed
                               Depends: python3-distupgrade (= 1:18.04.45) but 1:22.04.10 is to be installed
 update-manager-core : Depends: python3-update-manager (= 1:18.04.11) but 1:22.04.9 is to be installed
 xorg : Depends: xserver-xorg (>= 1:7.7+19ubuntu7.1)
        Depends: x11-utils but it is not installable
        Depends: x11-xkb-utils but it is not installable
E: Unable to correct problems, you have held broken packages.

我上网查提示是使用了错误的版本源,我也看了下sources.list

deb https://repo.huaweicloud.com/ubuntu-ports/ bionic main restricted universe multiverse 
deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic main restricted universe multiverse 
deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-security main restricted universe multiverse 
deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-security main restricted universe multiverse 
deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-updates main restricted universe multiverse 
deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-updates main restricted universe multiverse 
deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-backports main restricted universe multiverse 
deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-backports main restricted universe multiverse 
## Not recommended 
# deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse 
# deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse

确实是用了18的源,咱们这个架构能用官方的arm源吗,还是有自己的源?

我要发帖子