![ubuntu-desktop 无法安装在 Oracle VM (LTS 22.04) 上](https://linux22.com/image/948113/ubuntu-desktop%20%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%E5%9C%A8%20Oracle%20VM%20(LTS%2022.04)%20%E4%B8%8A.png)
我正在尝试在 Oracle VM(Ubuntu 22.04 LTS - GNU/Linux 5.15.0-1013-oracle aarch64)上的 arm 环境中安装 ubuntu-desktop。
我的 /etc/apt/sources.list 如下:
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
**deb http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy main restricted**
# deb-src http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
**deb http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted**
# deb-src http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
**deb http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy universe**
# deb-src http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy universe
**deb http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-updates universe**
# deb-src http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
**deb http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy multiverse**
# deb-src http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy multiverse
**deb http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-updates multiverse**
# deb-src http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
**deb http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse**
# deb-src http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
**deb http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted**
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted
**deb http://ports.ubuntu.com/ubuntu-ports jammy-security universe**
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security universe
**deb http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse**
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse
## From here I added by myself (user added)
**deb http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse**
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse
**deb http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse**
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse
**deb http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse**
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse
**deb http://archive.canonical.com/ubuntu jammy partner**
# deb-src http://archive.canonical.com/ubuntu jammy partner
当我尝试安装 ubuntu-dektop 时,我遇到了依赖关系问题,我无法处理。这是输出:
ubuntu@ubuntu-tgm-instance:~$ sudo apt install ubuntu-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:
ubuntu-release-upgrader-gtk : Depends: ubuntu-release-upgrader-core (= 1:22.04.10) but 1:22.04.11 is to be installed
Depends: python3-distupgrade (= 1:22.04.10) but 1:22.04.11 is to be installed
E: Unable to correct problems, you have held broken packages.
我不知道这是否与 ARM 的架构有关,但我尝试了很多方法都没有成功。但我不是专家,所以我与你们分享,希望你们中的任何人都能更好地了解可以做什么。我不知道这是否相关,但这个服务器昨天已经在 Ubuntu 22.04 上创建了。
答案1
我遇到了同样的问题,但发生在基于 AMD 的 Oracle Ubuntu 实例上,所以不要认为这是 ARM 特有的问题。目前通过使用 Ubuntu 20.04 (Focal) 与 Ubuntu 22.04 (Jammy) 解决了这个问题。这显然不是理想的选择,所以我很想知道你最终是如何解决这个问题的。