Trisquel 9 Beta - Cannot Install Gnome Desktop

8 respostas [Última entrada]
davidpgil
Desconectado
Joined: 08/26/2015

I just recently tried installing Gnome desktop in Trisquel 9 but I am unable to. There seems to be a dependecy issue. I did not take note of the missing dependencies (sorry). However, this could be easy enough to test by doing "sudo apt install gnome" and take note that it won't be able to be installed in Trisquel 9. Anyone else have this issue, or know why it may be happening? I am asking in case I missed something, before reporting this bug.

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

> I just recently tried installing Gnome desktop in Trisquel 9 but I am
> unable to. There seems to be a dependecy issue. I did not take note of
> the missing dependencies (sorry).

You may be able see in /var/log/apt/history.log what they were, or just
reattempt installation.

>"sudo apt install gnome"

Note that "gnome" is a metapackage which includes installs both the
GNOME desktop environment (gnome-shell) and many applications and
utilities. What happens if you just install "gnome-shell"?

davidpgil
Desconectado
Joined: 08/26/2015

> I just recently tried installing Gnome desktop in Trisquel 9 but I am
> unable to. There seems to be a dependecy issue. I did not take note of
> the missing dependencies (sorry).

You may be able see in /var/log/apt/history.log what they were, or just
reattempt installation.

>> I went on another laptop that still has the trisquel installation on it I tried to install just "gnome":

username@cpu:~$ sudo apt install gnome
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 : Depends: gnome-core (= 1:3.22+9+9.0trisquel1) but it is not going to be installed
Depends: gnome-getting-started-docs (>= 3.22) but 3.18.2-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

>"sudo apt install gnome"

Note that "gnome" is a metapackage which includes installs both the
GNOME desktop environment (gnome-shell) and many applications and
utilities. What happens if you just install "gnome-shell"?

>> I went on the other laptop and just tried "gnome-shell":

username@cpu:~$ sudo apt install gnome-shell
[sudo] password for davidphilipegil:
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-shell : Depends: ubuntu-wallpapers but it is not installable
Recommends: bolt (>= 0.2) 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
E: Unable to correct problems, you have held broken packages.

Any idea why this may be happening?

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

> gnome-shell : Depends: ubuntu-wallpapers but it is not installable

ubuntu-wallpapers isn't in the repo. It's one of the packages we
purge.[1] We need to either (a) modify gnome-shell's control file to
remove the dependency on ubuntu-wallpapers, (b) make it depend on
trisquel-wallpapers instead, or (c) modify trisquel-wallpapers' control
file so that it provides ubuntu-wallpapers. (c) would have the
advantage of also solving any other dependency issues resulting from
the removal of ubuntu-wallpapers.

[1]
https://devel.trisquel.info/trisquel/ubuntu-purge/blob/master/purge-bionic#L172

davidpgil
Desconectado
Joined: 08/26/2015

ubuntu-wallpapers isn't in the repo. It's one of the packages we
purge.[1] We need to either (a) modify gnome-shell's control file to
remove the dependency on ubuntu-wallpapers, (b) make it depend on
trisquel-wallpapers instead, or (c) modify trisquel-wallpapers' control
file so that it provides ubuntu-wallpapers...

> Not sure what you mean by "control file". I assume you mean place in the source code for gnome-shell that references ubuntu-wallpapers?

... (c) would have the
advantage of also solving any other dependency issues resulting from
the removal of ubuntu-wallpapers.

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

> Not sure what you mean by "control file".

Dependencies are specified in `debian/control` in a "Depends:" block.
Removing this line[1] or changing it to "trisquel-wallpapers" would make
gnome-shell installable. However, other packages may depend on
ubuntu-wallpapers too, in which case it would be more efficient to edit
trisquel-wallpaper's control file[2] and add "Provides:
ubuntu-wallpapers". This would make it so that any package which depend
on ubuntu-wallpapers will accept trisquel-wallpapers as fulfilling the
dependency.

[1]
https://git.launchpad.net/~ubuntu-desktop/ubuntu/+source/gnome-shell/tree/debian/control#n97

[2]
https://devel.trisquel.info/trisquel/trisquel-packages/blob/master/8.0/trisquel-wallpapers/debian/control

calher

I am a member!

Desconectado
Joined: 06/19/2015

On 01/05/2020 06:01 PM, name at domain wrote:
> However, other packages may depend on
> ubuntu-wallpapers too, in which case it would be more efficient to edit
> trisquel-wallpaper's control file[2] and add "Provides:
> ubuntu-wallpapers". This would make it so that any package which depend
> on ubuntu-wallpapers will accept trisquel-wallpapers as fulfilling the
> dependency.

That's awesome. I thought dependency on trisquel-wallpapers would have
to be substituted and hard-coded EVERYWHERE. O_O

davidpgil
Desconectado
Joined: 08/26/2015

So your saying we just need to make the trisquel-wallpapers control file look like this?


Source: trisquel-wallpapers
Section: trisquel
Priority: optional
Maintainer: Rubén Rodríguez <name at domain>
Build-Depends-Indep: debhelper
Standards-Version: 3.5.9.0

Package: trisquel-wallpapers
Architecture: all
Priority: optional
Description: Trisquel Wallpapers
The default Wallpapers for Trisquel.

Provides:
ubuntu-wallpapers

Is this correct?

davidpgil
Desconectado
Joined: 08/26/2015

UPDATE:
Gnome desktop now seems installable if one installs using aptitude.


sudo aptitude install gnome-core

Aptitude will take care of any dependency issues and you may be asked to select your display manager -- I chose lightdm. Then, log out and youll see that there will be an option on the login screen to change your desktop to Gnome, etc.

I possibly encountered this issue in the first place because I upgraded to Trisquel 9 from 8 using manual editing of source.list and "apt dist-upgrade". If I installed Trisquel 9 straight-away I may not have had this issue.