Score:1

How to get back ubuntu-desktop?

sb flag

I ran the command sudo apt-get install sqlite. Then some scripts ran on the command prompt, I don't know what happened, but a phrase from the last line was "uninstalled library" . Then I shoted down my system. Now when I am trying to login, it's showing fail to start session . Then I pressed Ctrl+Alt+F1 and I came here , picture is tagged below. What commands should I run here to get Ubuntu desktop back?

enter image description here

Guddi avatar
sb flag
Just edited, please see
Nate T avatar
it flag
check out `man dpkg`. I have a feeling you will find it interesting. Great explanation of how broken packages work behind the scenes and some shortcuts for fixing them as well.
Score:1
sb flag

I solved the issue by resolving dpkg: errors .Here is the link how I resolved it

Python3 cannot be downloaded result, after $sudo apt --reinstall install python3 command.ubuntu 18.04

Then ran

  sudo apt-get install ubuntu-desktop

But again it was showing unmet dependencies. Then I installed those dependencies one by one . It was a chain of dependencies,i had to go by each one, some were upgraded, some were downgraded, but finally installed. Then I ran

 sudo apt update

and again

sudo apt-get install ubuntu-desktop

And finally got a desktop to start a session.

Score:0
it flag

Pressing ctrl+alt+F2 from the login screen should get you a tty terminal. From there, just run sudo apt install ubuntu-desktop from tty. If that doesn't fix it, run sudo apt install --reinstall ubuntu-desktop.

Guddi avatar
sb flag
After running those commands, output- `The following packages have unmet dependencies: Ubuntu-desktop : Depends: gdm3 but it is not going to be installed Depends: ghostscript-x but it is not going to be installed Depends: gnome-shell but it is ... Depends: gstreamer1.0-packagekit but it is .. Depends: nautilus but it is not goi.... Depends: ubuntu-session but it is not ..... Recommends: cups-bsd Recommends: evince but .. ......................... E: Unable to correct problems, you have held broken packages`
Nate T avatar
it flag
Run `sudo apt update && sudo apt upgrade` and let me know the output.
Guddi avatar
sb flag
After running `sudo apt update && sudo apt upgrade`, Result-. `....... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded` `1 not fully installed or removed` `After this operation, 0 B of additional disk space will be used.` `Do you want to continue? [Y/N] y` `setting up python3-django (1:1.11.11-1ubuntu1)...` `file "/usr/lib/python3/dist-packages/django/contrib/admin/widgets.py".line 152``...... SyntaxError: Generator ......` `dpkg: error processing python3-django (--configure):` `installed python3-django package post-installation script subprocess returned error exit status 1`
Guddi avatar
sb flag
`Errors were encountered while processing: python3-django` `libdvd-pkg: package libdvdcss2-1.4.2-1 was removed,stop processing....` `E: Sub-process /usr/bin/dpkg returned an error code (1)`
Guddi avatar
sb flag
Then I tried `sudo dpkg --configure -a` nothing changed in output . Then tried `sudo apt-get --reinstall install python3` , Result- `Reinstallation of python is not possible, it cannot be downloaded.`And then, `the same dpkg error output` python version is python3.7.5
Guddi avatar
sb flag
No , I didn't :(
Nate T avatar
it flag
You are still using apt-get. Try using only apt.
Nate T avatar
it flag
You should be using only apt, unless apt-get is specifically needed. You can think of apt-get as being sort of like the root user of the APT commands. In certain cases, it comes in handy, but 99% of the time it's just easier to break stuff. Ever since apt command was released, apt-get is only for special situations
Guddi avatar
sb flag
Ok, I did run the command `sudo apt --reinstall install python3` and still getting same error .
Guddi avatar
sb flag
My terminal is showing `~bash: ./rslsync: No such file or directory. 0 packages can be updated `, is it restricting python3 download? I have no idea, please answer.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.