Ubuntu 20.04 将 gnome 从 40 降级到 30s

Ubuntu 20.04 将 gnome 从 40 降级到 30s

我安装了 Gnome 40 来尝试,但我想返回到上一个,可能是 38 或 39

我这样做是为了升级

sudo add-apt-repository ppa:devacom/x11 -y
sudo add-apt-repository ppa:devacom/gnome-40 -y
sudo apt install ubuntu-desktop gnome-shell gnome-control-center
sudo apt upgrade

我试过了sudo apt install ubuntu-desktop gnome-shell gnome-control-center但回来了

Reading package lists... Done
Building dependency tree       
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:
 gnome-control-center : Depends: gnome-control-center-data (< 1:3.37) but 1:40.0-1ubuntu4 is to be installed
                        Depends: gnome-settings-daemon (>= 3.29) but it is not going to be installed
 gnome-shell : Depends: evolution-data-server (>= 3.33.1) but it is not going to be installed
               Depends: gir1.2-gweather-3.0 (>= 3.25.91) but it is not going to be installed
               Depends: gnome-settings-daemon (>= 3.16.0) but it is not going to be installed
               Depends: gnome-shell-common (= 3.36.9-0ubuntu0.20.04.2) but 40.5-1ubuntu1 is to be installed
               Recommends: gdm3 (>= 3.10.0.1-3~) but it is not going to be installed
               Recommends: ubuntu-session but it is not going to be installed or
                           gnome-session but it is not going to be installed
 ubuntu-desktop : Depends: gdm3 but it is not going to be installed
                  Depends: gnome-settings-daemon but it is not going to be installed
                  Depends: gnome-shell-extension-ubuntu-dock but it is not going to be installed
                  Depends: ubuntu-desktop-minimal but it is not going to be installed
                  Depends: ubuntu-session but it is not going to be installed
                  Recommends: gnome-calendar but it is not going to be installed
                  Recommends: gnome-initial-setup but it is not going to be installed
                  Recommends: gnome-todo but it is not going to be installed
                  Recommends: network-manager-openvpn-gnome but it is not going to be installed
                  Recommends: yaru-theme-gnome-shell but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有什么办法可以降级吗?

更新:

现在之后建议解决方案gnome 根本不起作用。

首先,它是一个黑屏,然后我切换到 lightdm sudo dpkg-reconfigure lightdm,现在如果在登录时,从选择桌面环境中选择 ubuntu(我相信是 gnome),应用程序打开,但没有壁纸(使用 ops ....,注销)和应用程序窗口没有 x 或最大化按钮,基本上已经坏了

答案1

你必须使用ppa-purge用于此目的的实用程序如下:

sudo apt-get update
sudo apt-get install ppa-purge
sudo ppa-purge ppa:devacom/gnome-40
sudo ppa-purge ppa:devacom/x11

然后重新安装 ubuntu-desktop 任务包和其他

sudo apt-get install --reinstall ubuntu-desktop^ gnome-shell gnome-control-center
sudo apt-get upgrade

答案2

在继续之前,请确保您已备份/home(或任何重要内容)并创建可启动媒体(如果出现问题,您可以使用可启动媒体重新安装操作系统;并从备份中恢复重要数据)。

  1. focal.pref使用/etc/apt/preferences.d/touch 命令创建一个名为的文件:

    sudo touch /etc/apt/preferences.d/focal.pref
    
  2. 使用文本编辑器编辑该文件(例如sudo -H gedit /etc/apt/preferences.d/focal.pref:)并将以下行复制粘贴到其中:

    Package: *
    Pin: release v=20.04, a=focal-security
    Pin-Priority:1001
    
    Package: *
    Pin: release v=20.04,a=focal-updates
    Pin-Priority: 1001
    
    Package: *
    Pin: release v=20.04,o=Ubuntu,a=focal
    Pin-Priority: 1001
    
    Package: *
    Pin: release v=20.04,o=Canonical,a=focal,n=focal,c=partner 
    Pin-Priority: 1001
    
  3. 更新并升级您的系统。如果软件包中存在中断和冲突,这可能会造成破坏,因此请使用参数--dry-run模拟升级:

    sudo apt-get update && sudo apt-get --dry-run dist-upgrade
    

    查找任何冲突。如果您不确定是否存在冲突,请编辑您的问题并将命令的输出粘贴到它上面。在您确定没有冲突或中断后,运行升级(dist-upgrade):

    sudo apt-get dist-upgrade
    

这是尝试将您安装的软件包恢复为软件包的默认版本(存储库中可用的软件包)。

注意::上述情况可能很危险,尤其是如果有其他外国来源或焦点反向移植已在您的系统上启用。

要简要了解我们上面所做的工作,请参阅:什么是固定?

相关内容