gnome con wsl2

Configurazione e uso delle applicazioni del desktop manager predefinito a partire dalla versione 18.04 di Ubuntu.
stefa24
Prode Principiante
Messaggi: 16
Iscrizione: lunedì 21 febbraio 2011, 8:20
Località: worldwide

gnome con wsl2

Messaggio da stefa24 »

Ciao
Nuovo con ubuntu perche' vorrei fare esperienza con ros2
Mi spiace se utilizzero' termini improri
Ho installato ubuntu su pc con win 10 e wsl2
Adesso sto' cercando di utilizzare GNOME ma incontro i messaggi di errore sotto
Ho seguito il link sotto
https://learn.microsoft.com/en-us/windo ... s/gui-apps
Allegati
Screenshot 2024-08-18 200734.jpg
Screenshot 2024-08-18 201435.jpg
Ultima modifica di stefa24 il lunedì 19 agosto 2024, 11:58, modificato 1 volta in totale.
Avatar utente
DoctorStrange
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3045
Iscrizione: mercoledì 14 ottobre 2015, 9:33
Desktop: Gnome3
Distribuzione: Ubuntu 24.04 LTS Noble Numbat
Sesso: Maschile
Località: Roma, Italia

Re: gnome con wsl2

Messaggio da DoctorStrange »

Non ho ben capito cosa hai fatto. Hai provato ad installare gnome su un subsystem di linux sotto windows?
Avatar utente
GjMan78
Rampante Reduce
Rampante Reduce
Messaggi: 6234
Iscrizione: mercoledì 22 novembre 2006, 19:15
Desktop: KdePlasma
Distribuzione: EndeavourOS
Sesso: Maschile
Località: ~/Italia/Lazio/Viterbo/

Re: gnome con wsl2

Messaggio da GjMan78 »

Ho installato ubuntu su pc con win 10 e wsl2
Adesso sto' cercando di utilizzare GNOME ma incontro i messaggi di errore sotto
Premetto che non ho mai utilizzato wsl non avendo da anni un'installazione di Windows sul pc, ma ho dato un'occhiata alla guida che hai linkato.

A quanto pare se aggiorni wsl puoi installare applicazioni grafiche linux che si integreranno ai menu di sistema di Windows.

Anzitutto devi aprire una Powershell con diritti amministrativi ed aggiornare wsl

Codice: Seleziona tutto

wsl --update
Al termine

Codice: Seleziona tutto

wsl --shutdown
Nel tuo secondo screenshot sembra che tu abbia tentato di eseguire un software senza averlo prima installato, quindi prova cosi.

Avvia wsl e poi

Codice: Seleziona tutto

sudo apt update

Codice: Seleziona tutto

sudo apt install gnome-text-editor -y
Infine eseguilo con

Codice: Seleziona tutto

gnome-text-editor
Ultima modifica di GjMan78 il lunedì 19 agosto 2024, 12:09, modificato 1 volta in totale.
MacBook Pro - Intel i5-3210 - 16 Gbyte Ram DDR3 - SSD 500 Gbyte x 2
»»» 𝗙𝗮𝗶 𝗶𝗹 𝗕𝗮𝗰𝗸𝘂𝗽! ¯\_(ツ)_/¯
stefa24
Prode Principiante
Messaggi: 16
Iscrizione: lunedì 21 febbraio 2011, 8:20
Località: worldwide

Re: gnome con wsl2

Messaggio da stefa24 »

Ciao
Grazie per i riscontri
Stasera provo e aggiorno il post
stefa24
Prode Principiante
Messaggi: 16
Iscrizione: lunedì 21 febbraio 2011, 8:20
Località: worldwide

Re: gnome con wsl2

Messaggio da stefa24 »

ciao
sotto quello che ho ottenuto:

Codice: Seleziona tutto

:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04 LTS
Release:        24.04
Codename:       noble

...:~$ apt-get update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)

...:~$ gnome-text-editor
Command 'gnome-text-editor' not found, but can be installed with:
sudo apt install gnome-text-editor

...:~$ sudo apt install gnome-text-editor
[sudo] password for stefa24:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  aspell aspell-en dictionaries-common emacsen-common enchant-2 gstreamer1.0-gl gstreamer1.0-plugins-base
  hunspell-en-us libadwaita-1-0 libaspell15 libcairo-script-interpreter2 libcdparanoia0 libeditorconfig0
  libenchant-2-2 libgraphene-1.0-0 libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 libgtk-4-1 libgtk-4-bin
  libgtk-4-common libgtk-4-media-gstreamer libgtksourceview-5-0 libgtksourceview-5-common libgudev-1.0-0
  libhunspell-1.7-0 libogg0 libopus0 liborc-0.4-0t64 libtheora0 libvisual-0.4-0 libvorbis0a libvorbisenc2
Suggested packages:
  aspell-doc spellutils wordlist gvfs hunspell openoffice.org-hunspell | openoffice.org-core libenchant-2-voikko
  libvisual-0.4-plugins opus-tools
The following NEW packages will be installed:
  aspell aspell-en dictionaries-common emacsen-common enchant-2 gnome-text-editor gstreamer1.0-gl
  gstreamer1.0-plugins-base hunspell-en-us libadwaita-1-0 libaspell15 libcairo-script-interpreter2 libcdparanoia0
  libeditorconfig0 libenchant-2-2 libgraphene-1.0-0 libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 libgtk-4-1
  libgtk-4-bin libgtk-4-common libgtk-4-media-gstreamer libgtksourceview-5-0 libgtksourceview-5-common libgudev-1.0-0
  libhunspell-1.7-0 libogg0 libopus0 liborc-0.4-0t64 libtheora0 libvisual-0.4-0 libvorbis0a libvorbisenc2
0 upgraded, 33 newly installed, 0 to remove and 0 not upgraded.
Need to get 6592 kB/13.7 MB of archives.
After this operation, 54.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu noble/main amd64 libaspell15 amd64 0.60.8.1-1build1 [323 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble/main amd64 emacsen-common all 3.0.5 [12.1 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble/main amd64 dictionaries-common all 1.29.7 [188 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble/main amd64 aspell amd64 0.60.8.1-1build1 [88.1 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble/main amd64 aspell-en all 2020.12.07-0-1 [303 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble/main amd64 hunspell-en-us all 1:2020.12.07-2 [280 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble/main amd64 libhunspell-1.7-0 amd64 1.7.2+really1.7.2-10build3 [294 kB]
Get:8 http://archive.ubuntu.com/ubuntu noble/main amd64 libenchant-2-2 amd64 2.3.3-2build2 [51.4 kB]
Get:9 http://archive.ubuntu.com/ubuntu noble/main amd64 enchant-2 amd64 2.3.3-2build2 [13.0 kB]
Get:10 http://archive.ubuntu.com/ubuntu noble/main amd64 libgraphene-1.0-0 amd64 1.10.8-3build2 [46.2 kB]
Get:11 http://archive.ubuntu.com/ubuntu noble/main amd64 libcairo-script-interpreter2 amd64 1.18.0-3build1 [60.3 kB]
Get:12 http://archive.ubuntu.com/ubuntu noble/main amd64 libgtk-4-common all 4.14.2+ds-1ubuntu1 [1235 kB]
Get:13 http://archive.ubuntu.com/ubuntu noble/main amd64 libgtk-4-1 amd64 4.14.2+ds-1ubuntu1 [3277 kB]
Get:14 http://archive.ubuntu.com/ubuntu noble/main amd64 libadwaita-1-0 amd64 1.5.0-1ubuntu2 [408 kB]
Get:15 http://archive.ubuntu.com/ubuntu noble/main amd64 libeditorconfig0 amd64 0.12.7-0.1 [14.3 kB]
Fetched 6592 kB in 4s (1838 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libaspell15:amd64.
(Reading database ... 40663 files and directories currently installed.)
Preparing to unpack .../00-libaspell15_0.60.8.1-1build1_amd64.deb ...
Unpacking libaspell15:amd64 (0.60.8.1-1build1) ...
Selecting previously unselected package emacsen-common.
Preparing to unpack .../01-emacsen-common_3.0.5_all.deb ...
Unpacking emacsen-common (3.0.5) ...
Selecting previously unselected package dictionaries-common.
Preparing to unpack .../02-dictionaries-common_1.29.7_all.deb ...
Adding 'diversion of /usr/share/dict/words to /usr/share/dict/words.pre-dictionaries-common by dictionaries-common'
Unpacking dictionaries-common (1.29.7) ...
Selecting previously unselected package aspell.
Preparing to unpack .../03-aspell_0.60.8.1-1build1_amd64.deb ...
Unpacking aspell (0.60.8.1-1build1) ...
Selecting previously unselected package aspell-en.
Preparing to unpack .../04-aspell-en_2020.12.07-0-1_all.deb ...
Unpacking aspell-en (2020.12.07-0-1) ...
Selecting previously unselected package hunspell-en-us.
Preparing to unpack .../05-hunspell-en-us_1%3a2020.12.07-2_all.deb ...
Unpacking hunspell-en-us (1:2020.12.07-2) ...
Selecting previously unselected package libhunspell-1.7-0:amd64.
Preparing to unpack .../06-libhunspell-1.7-0_1.7.2+really1.7.2-10build3_amd64.deb ...
Unpacking libhunspell-1.7-0:amd64 (1.7.2+really1.7.2-10build3) ...
Selecting previously unselected package libenchant-2-2:amd64.
Preparing to unpack .../07-libenchant-2-2_2.3.3-2build2_amd64.deb ...
Unpacking libenchant-2-2:amd64 (2.3.3-2build2) ...
Selecting previously unselected package enchant-2.
Preparing to unpack .../08-enchant-2_2.3.3-2build2_amd64.deb ...
Unpacking enchant-2 (2.3.3-2build2) ...
Selecting previously unselected package libgraphene-1.0-0:amd64.
Preparing to unpack .../09-libgraphene-1.0-0_1.10.8-3build2_amd64.deb ...
Unpacking libgraphene-1.0-0:amd64 (1.10.8-3build2) ...
Selecting previously unselected package libcairo-script-interpreter2:amd64.
Preparing to unpack .../10-libcairo-script-interpreter2_1.18.0-3build1_amd64.deb ...
Unpacking libcairo-script-interpreter2:amd64 (1.18.0-3build1) ...
Selecting previously unselected package libgtk-4-common.
Preparing to unpack .../11-libgtk-4-common_4.14.2+ds-1ubuntu1_all.deb ...
Unpacking libgtk-4-common (4.14.2+ds-1ubuntu1) ...
Selecting previously unselected package libgtk-4-1:amd64.
Preparing to unpack .../12-libgtk-4-1_4.14.2+ds-1ubuntu1_amd64.deb ...
Unpacking libgtk-4-1:amd64 (4.14.2+ds-1ubuntu1) ...
Selecting previously unselected package libadwaita-1-0:amd64.
Preparing to unpack .../13-libadwaita-1-0_1.5.0-1ubuntu2_amd64.deb ...
Unpacking libadwaita-1-0:amd64 (1.5.0-1ubuntu2) ...
Selecting previously unselected package libeditorconfig0:amd64.
Preparing to unpack .../14-libeditorconfig0_0.12.7-0.1_amd64.deb ...
Unpacking libeditorconfig0:amd64 (0.12.7-0.1) ...
Selecting previously unselected package libgtksourceview-5-common.
Preparing to unpack .../15-libgtksourceview-5-common_5.12.0-1build1_all.deb ...
Unpacking libgtksourceview-5-common (5.12.0-1build1) ...
Selecting previously unselected package libgtksourceview-5-0:amd64.
Preparing to unpack .../16-libgtksourceview-5-0_5.12.0-1build1_amd64.deb ...
Unpacking libgtksourceview-5-0:amd64 (5.12.0-1build1) ...
Selecting previously unselected package gnome-text-editor.
Preparing to unpack .../17-gnome-text-editor_46.1-1_amd64.deb ...
Unpacking gnome-text-editor (46.1-1) ...
Selecting previously unselected package liborc-0.4-0t64:amd64.
Preparing to unpack .../18-liborc-0.4-0t64_1%3a0.4.38-1build1_amd64.deb ...
Unpacking liborc-0.4-0t64:amd64 (1:0.4.38-1build1) ...
Selecting previously unselected package libgstreamer-plugins-base1.0-0:amd64.
Preparing to unpack .../19-libgstreamer-plugins-base1.0-0_1.24.2-1_amd64.deb ...
Unpacking libgstreamer-plugins-base1.0-0:amd64 (1.24.2-1) ...
Selecting previously unselected package libgudev-1.0-0:amd64.
Preparing to unpack .../20-libgudev-1.0-0_1%3a238-5ubuntu1_amd64.deb ...
Unpacking libgudev-1.0-0:amd64 (1:238-5ubuntu1) ...
Selecting previously unselected package libgstreamer-gl1.0-0:amd64.
Preparing to unpack .../21-libgstreamer-gl1.0-0_1.24.2-1_amd64.deb ...
Unpacking libgstreamer-gl1.0-0:amd64 (1.24.2-1) ...
Selecting previously unselected package gstreamer1.0-gl:amd64.
Preparing to unpack .../22-gstreamer1.0-gl_1.24.2-1_amd64.deb ...
Unpacking gstreamer1.0-gl:amd64 (1.24.2-1) ...
Selecting previously unselected package libcdparanoia0:amd64.
Preparing to unpack .../23-libcdparanoia0_3.10.2+debian-14build3_amd64.deb ...
Unpacking libcdparanoia0:amd64 (3.10.2+debian-14build3) ...
Selecting previously unselected package libogg0:amd64.
Preparing to unpack .../24-libogg0_1.3.5-3build1_amd64.deb ...
Unpacking libogg0:amd64 (1.3.5-3build1) ...
Selecting previously unselected package libopus0:amd64.
Preparing to unpack .../25-libopus0_1.4-1build1_amd64.deb ...
Unpacking libopus0:amd64 (1.4-1build1) ...
Selecting previously unselected package libtheora0:amd64.
Preparing to unpack .../26-libtheora0_1.1.1+dfsg.1-16.1build3_amd64.deb ...
Unpacking libtheora0:amd64 (1.1.1+dfsg.1-16.1build3) ...
Selecting previously unselected package libvisual-0.4-0:amd64.
Preparing to unpack .../27-libvisual-0.4-0_0.4.2-2build1_amd64.deb ...
Unpacking libvisual-0.4-0:amd64 (0.4.2-2build1) ...
Selecting previously unselected package libvorbis0a:amd64.
Preparing to unpack .../28-libvorbis0a_1.3.7-1build3_amd64.deb ...
Unpacking libvorbis0a:amd64 (1.3.7-1build3) ...
Selecting previously unselected package libvorbisenc2:amd64.
Preparing to unpack .../29-libvorbisenc2_1.3.7-1build3_amd64.deb ...
Unpacking libvorbisenc2:amd64 (1.3.7-1build3) ...
Selecting previously unselected package gstreamer1.0-plugins-base:amd64.
Preparing to unpack .../30-gstreamer1.0-plugins-base_1.24.2-1_amd64.deb ...
Unpacking gstreamer1.0-plugins-base:amd64 (1.24.2-1) ...
Selecting previously unselected package libgtk-4-bin.
Preparing to unpack .../31-libgtk-4-bin_4.14.2+ds-1ubuntu1_amd64.deb ...
Unpacking libgtk-4-bin (4.14.2+ds-1ubuntu1) ...
Selecting previously unselected package libgtk-4-media-gstreamer.
Preparing to unpack .../32-libgtk-4-media-gstreamer_4.14.2+ds-1ubuntu1_amd64.deb ...
Unpacking libgtk-4-media-gstreamer (4.14.2+ds-1ubuntu1) ...
Setting up libcairo-script-interpreter2:amd64 (1.18.0-3build1) ...
Setting up libcdparanoia0:amd64 (3.10.2+debian-14build3) ...
Setting up libogg0:amd64 (1.3.5-3build1) ...
Setting up libeditorconfig0:amd64 (0.12.7-0.1) ...
Setting up libgtksourceview-5-common (5.12.0-1build1) ...
Setting up libvisual-0.4-0:amd64 (0.4.2-2build1) ...
Setting up libaspell15:amd64 (0.60.8.1-1build1) ...
Setting up liborc-0.4-0t64:amd64 (1:0.4.38-1build1) ...
Setting up emacsen-common (3.0.5) ...
Setting up libopus0:amd64 (1.4-1build1) ...
Setting up libvorbis0a:amd64 (1.3.7-1build3) ...
Setting up libtheora0:amd64 (1.1.1+dfsg.1-16.1build3) ...
Setting up libgtk-4-common (4.14.2+ds-1ubuntu1) ...
Setting up libhunspell-1.7-0:amd64 (1.7.2+really1.7.2-10build3) ...
Setting up libgudev-1.0-0:amd64 (1:238-5ubuntu1) ...
Setting up libgraphene-1.0-0:amd64 (1.10.8-3build2) ...
Setting up libvorbisenc2:amd64 (1.3.7-1build3) ...
Setting up dictionaries-common (1.29.7) ...
Setting up libgstreamer-plugins-base1.0-0:amd64 (1.24.2-1) ...
Setting up libgstreamer-gl1.0-0:amd64 (1.24.2-1) ...
Setting up gstreamer1.0-plugins-base:amd64 (1.24.2-1) ...
Setting up aspell (0.60.8.1-1build1) ...
Setting up hunspell-en-us (1:2020.12.07-2) ...
Setting up gstreamer1.0-gl:amd64 (1.24.2-1) ...
Setting up libenchant-2-2:amd64 (2.3.3-2build2) ...
Setting up aspell-en (2020.12.07-0-1) ...
Setting up enchant-2 (2.3.3-2build2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.39-0ubuntu8) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libglib2.0-0t64:amd64 (2.80.0-6ubuntu1) ...
Setting up libgtk-4-1:amd64 (4.14.2+ds-1ubuntu1) ...
Setting up libgtk-4-bin (4.14.2+ds-1ubuntu1) ...
Setting up libgtksourceview-5-0:amd64 (5.12.0-1build1) ...
Setting up libadwaita-1-0:amd64 (1.5.0-1ubuntu2) ...
Setting up libgtk-4-media-gstreamer (4.14.2+ds-1ubuntu1) ...
Setting up gnome-text-editor (46.1-1) ...
Processing triggers for dictionaries-common (1.29.7) ...
aspell-autobuildhash: processing: en [en-common].
aspell-autobuildhash: processing: en [en-variant_0].
aspell-autobuildhash: processing: en [en-variant_1].
aspell-autobuildhash: processing: en [en-variant_2].
aspell-autobuildhash: processing: en [en-w_accents-only].
aspell-autobuildhash: processing: en [en-wo_accents-only].
aspell-autobuildhash: processing: en [en_AU-variant_0].
aspell-autobuildhash: processing: en [en_AU-variant_1].
aspell-autobuildhash: processing: en [en_AU-w_accents-only].
aspell-autobuildhash: processing: en [en_AU-wo_accents-only].
aspell-autobuildhash: processing: en [en_CA-variant_0].
aspell-autobuildhash: processing: en [en_CA-variant_1].
aspell-autobuildhash: processing: en [en_CA-w_accents-only].
aspell-autobuildhash: processing: en [en_CA-wo_accents-only].
aspell-autobuildhash: processing: en [en_GB-ise-w_accents-only].
aspell-autobuildhash: processing: en [en_GB-ise-wo_accents-only].
aspell-autobuildhash: processing: en [en_GB-ize-w_accents-only].
aspell-autobuildhash: processing: en [en_GB-ize-wo_accents-only].
aspell-autobuildhash: processing: en [en_GB-variant_0].
aspell-autobuildhash: processing: en [en_GB-variant_1].
aspell-autobuildhash: processing: en [en_US-w_accents-only].
aspell-autobuildhash: processing: en [en_US-wo_accents-only].
Processing triggers for libc-bin (2.39-0ubuntu8) ...

...:~$ gnome-text-editor
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen

(gnome-text-editor:1136): GLib-GIO-CRITICAL **: 19:20:38.648: g_file_new_for_path: assertion 'path != NULL' failed

(gnome-text-editor:1136): editor-document-WARNING **: 19:20:38.649: Your system has an improperly configured XDG_DOCUMENTS_DIR. Using $HOME instead.
ho degli errori ma ottengo l immagine sotto, cosa sbaglio?

Immagine

stefano
Avatar utente
GjMan78
Rampante Reduce
Rampante Reduce
Messaggi: 6234
Iscrizione: mercoledì 22 novembre 2006, 19:15
Desktop: KdePlasma
Distribuzione: EndeavourOS
Sesso: Maschile
Località: ~/Italia/Lazio/Viterbo/

Re: gnome con wsl2

Messaggio da GjMan78 »

Quelli che tu chiami errori in realtà sono soltanto dei warning normalissimi che puoi ignorare, appaiono ogni qualvolta si esegue un'applicazione grafica da terminale.

Comunque hai ottenuto quello che prometteva la guida cioè hai installato ed eseguito gnome-text-editor che altri non è che quel semplice editor di testo che mostri nell'ultimo screenshot.
MacBook Pro - Intel i5-3210 - 16 Gbyte Ram DDR3 - SSD 500 Gbyte x 2
»»» 𝗙𝗮𝗶 𝗶𝗹 𝗕𝗮𝗰𝗸𝘂𝗽! ¯\_(ツ)_/¯
stefa24
Prode Principiante
Messaggi: 16
Iscrizione: lunedì 21 febbraio 2011, 8:20
Località: worldwide

Re: gnome con wsl2

Messaggio da stefa24 »

grazie per i riscontri
sono nuovo e con un background praticamente mancante su questi argoimenti e sicuramente uso termini impropri
Scrivi risposta

Ritorna a “GNOME”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 11 ospiti