AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

    • 主页
    • 系统&网络
    • Ubuntu
    • Unix
    • DBA
    • Computer
    • Coding
    • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1017005

navetdesalpes's questions

Martin Hope
navetdesalpes
Asked: 2019-11-19 06:11:52 +0800 CST

会话开始只显示背景,直到我通过 tty1 手动 startX

  • 1

在我开始我的小说之前关于我的设置的一些信息:Ubuntu 16.04 gnome gdm3(lightdm当我第一次遇到问题时正在使用,但切换到试图查看它是否解决了问题)。

当我登录我的会话时,我可以选择我的会话并输入我的密码就好了,但是只有后台加载,没有别的。如果我Ctrl++并通过startX手动启动serverX,我的会话加载正常Alt。 在一个相关问题上,我也无法锁定我的会话(通过+ +或+或 GUI)F1
CtrlAltLSuperL

现在,这个问题不是随机出现的。我最近搞砸了与包管理相关的所有事情。而且我无法准确地记住我所做的每一件事。

如果这可能有帮助,这是我所做的一些大视图。

  • 我试图安装 python 3.6,但它不会让我超过 python 3.5。所以为了聪明点,我编辑/etc/apt/sources.list并添加了一些我认为的调试存储库。(此后我将更改恢复为sources.list)。

    #deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://us.archive.ubuntu.com/ubuntu/ xenial universe
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://us.archive.ubuntu.com/ubuntu/ xenial multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu xenial partner
    # deb-src http://archive.canonical.com/ubuntu xenial partner
    
    deb http://security.ubuntu.com/ubuntu xenial-security main restricted
    # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    deb http://security.ubuntu.com/ubuntu xenial-security universe
    # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    deb http://security.ubuntu.com/ubuntu xenial-security multiverse
    # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
    
  • 然后试图强制安装python 3.6(我失败了),我把一切都搞砸了。从我的角度来看,git突然不再安装在我的机器上,每次我想运行时,apt-get我都有一些未解决的依赖项(moslty git,,,python3)libperl。

  • 然后我试图解决这个apt问题。在某些时候设法在其他软件包 中意外卸载apt-get(也没有安装)......aptitude

  • 此时,机器运行正常,我可以锁定我的会话,我可以使用vim,gcc并且gdb很好(对我来说一切都很好,但是git)。

  • 然后我锁定我的会话并进入周末。今天早上我回到黑屏,屏幕上几乎没有显示任何内容。
  • 我硬重启了我的机器,但什么也没有启动(此时我什至无法尝试登录我的会话)。所以我Ctrl++ ,并尝试手动启动startX(失败得很惨) Alt。F1
  • 然后我继续通过以下方式修复(我猜)我的包裹问题:

    sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf
    

    并重新安装ubuntu-desktop并最终设法正常启动 serverX 和我的会话

    sudo apt --fix-broken install 
    sudo dpkg --configure -a 
    sudo apt-get update 
    sudo apt-get upgrade 
    sudo dpkg --configure -a 
    sudo apt-get -f install 
    sudo apt-get full-upgrade  
    sudo apt-get install --reinstall ubuntu-desktop  
    sudo apt-get install --reinstall ubuntu-release-upgrader-gtk
    sudo apt-get install --reinstall update-manager  
    startx
    

    一切都很好,我很高兴(我注意到环境与以前不完全相同(终端中的字体不一样)但无论如何,我可以正常工作。(甚至git回来了)

  • 然后我试图锁定我的会话——>不可能

  • 当我重新启动尝试修复锁定问题时,我注意到一旦我输入密码登录到我的会话,它就会加载背景而不是其他任何东西(startX 再次通过tty1解决登录到我的会话的问题)。

    为了解决这个问题,我尝试了一些方法:

    sudo apt install --reinstall gnome-shell ubuntu-gnome-desktop
    

    我尝试使用 gdm3 和 lightdm:两次都出现同样的问题

    sudo apt-get install ubuntu-session
    sudo apt-get install x11-common
    sudo apt-get install xserver-common
    sudo apt-get install xserver-xorg
    sudo apt-get install gnome
    sudo apt-get install unity
    

我很乐意提供任何日志文件或任何东西,当然,如果你足够疯狂想要帮助我解决我的烂摊子。

gnome xorg apt session
  • 1 个回答
  • 195 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助
subwaysurfers
my femboy roommate

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve