0

due to an unknown reason my ubuntu desktop is gone, I have tried to re install it by issuing the command bellow:

sudo apt-get install ubuntu-gnome-desktop

surprisingly I got this error:

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:
 ubuntu-gnome-desktop : Depends: ubuntu-desktop but it is not going to be installed
                        Depends: gnome-session but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I have googled my issue and applied some of the suggested solutions but the problem still exists.

I have deleted all of the ppa packages. tried fixing broken packages, etc

All I want is to re install my ubuntu desktop and fix packages installed on my system.

the output of cat /etc/apt/sources.list is:

# deb cdrom:[Ubuntu 18.10 _Cosmic Cuttlefish_ - Release amd64 (20181017.3)]/ cosmic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ubuntu.hostiran.ir/ubuntuarchive/ cosmic main restricted
# deb-src http://ir.archive.ubuntu.com/ubuntu/ cosmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ubuntu.hostiran.ir/ubuntuarchive/ cosmic-updates main restricted
# deb-src http://ir.archive.ubuntu.com/ubuntu/ cosmic-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://ubuntu.hostiran.ir/ubuntuarchive/ cosmic universe
# deb-src http://ir.archive.ubuntu.com/ubuntu/ cosmic universe
deb http://ubuntu.hostiran.ir/ubuntuarchive/ cosmic-updates universe
# deb-src http://ir.archive.ubuntu.com/ubuntu/ cosmic-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://ubuntu.hostiran.ir/ubuntuarchive/ cosmic multiverse
# deb-src http://ir.archive.ubuntu.com/ubuntu/ cosmic multiverse
deb http://ubuntu.hostiran.ir/ubuntuarchive/ cosmic-updates multiverse
# deb-src http://ir.archive.ubuntu.com/ubuntu/ cosmic-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://ubuntu.hostiran.ir/ubuntuarchive/ cosmic-backports main restricted universe multiverse
# deb-src http://ir.archive.ubuntu.com/ubuntu/ cosmic-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 cosmic partner
# deb-src http://archive.canonical.com/ubuntu cosmic partner

deb http://ubuntu.hostiran.ir/ubuntuarchive/ cosmic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu cosmic-security main restricted
deb http://ubuntu.hostiran.ir/ubuntuarchive/ cosmic-security universe
# deb-src http://security.ubuntu.com/ubuntu cosmic-security universe
deb http://ubuntu.hostiran.ir/ubuntuarchive/ cosmic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu cosmic-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb [arch=amd64] https://download.docker.com/linux/ubuntu cosmic stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu cosmic stable

by the way this is the output of lsb_release -a command:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.10
Release:    18.10
Codename:   cosmic
  • it's ubuntu-gnome-desktop. ...ubuntu-desktop is for 17 and under (actually maybe only 16 and under) – tatsu Jun 13 '19 at 14:54
  • the same problem, however I have updated my issue to reflect your suggestion – sepisoad Jun 13 '19 at 14:58
  • 2
    What does sudo apt update return. What is the output of cat /etc/apt/sources.list? – Kulfy Jun 13 '19 at 14:59
  • updated my question – sepisoad Jun 13 '19 at 15:08
  • According to archive mirrors page, update time of Host Iran is unknown. Try changing the server. – Kulfy Jun 13 '19 at 16:57
0

Since ubuntu 17.10 default desktop is gnome3 not longer unity.

sudo apt install --reinstall ubuntu-desktop gnome-shell
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.