Wine reinstallation force me to deinstall ubuntu-desktop

Status
Not open for further replies.

Gloster

New Member
Joined
Feb 7, 2024
Messages
27
Reaction score
2
Credits
261
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

uname -r
6.5.0-17-generic

After :

sudo apt install wine
...
The following packages will be removed :
fuse2fs libgl1-amber-dri mesa-vulkan-drivers ubuntu-desktop ubuntu-desktop-minimal uuid-runtime xorg

I did not confirm it to install wine

From my side of view something must be wrong.

Package Ubuntu-desktop must be removed to install wine ????

The complete ouput :
sudo apt install wine
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfuse2 x11-apps x11-session-utils xbitmaps xinit
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
fonts-wine libcapi20-3 libfaudio0 libodbc2 libstb0 libvkd3d1 libwine libz-mingw-w64 wine64
Suggested packages:
odbc-postgresql tdsodbc gstreamer1.0-plugins-bad ttf-mscorefonts-installer q4wine winbind winetricks playonlinux
wine-binfmt dosbox exe-thumbnailer | kio-extras wine64-preloader
Recommended packages:
libosmesa6 libvkd3d-shader1 wine32
The following packages will be REMOVED:
fuse2fs libgl1-amber-dri mesa-vulkan-drivers ubuntu-desktop ubuntu-desktop-minimal uuid-runtime xorg

The following NEW packages will be installed:
fonts-wine libcapi20-3 libfaudio0 libodbc2 libstb0 libvkd3d1 libwine libz-mingw-w64 wine wine64
0 upgraded, 10 newly installed, 7 to remove and 0 not upgraded.
Need to get 85.1 MB of archives.
After this operation, 495 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

Also
sudo apt autoremove

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Any idea, what is wrong on my system ?
 
Last edited:


Try:
Code:
apt-get install wine
and see if it helps.
 
sudo apt-get install wine
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfuse2 x11-apps x11-session-utils xbitmaps xinit
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
fonts-wine libcapi20-3 libfaudio0 libodbc2 libstb0 libvkd3d1 libwine libz-mingw-w64 wine64
Suggested packages:
odbc-postgresql tdsodbc gstreamer1.0-plugins-bad ttf-mscorefonts-installer q4wine winbind winetricks playonlinux
wine-binfmt dosbox exe-thumbnailer | kio-extras wine64-preloader
Recommended packages:
libosmesa6 libvkd3d-shader1 wine32
The following packages will be REMOVED:
fuse2fs libgl1-amber-dri mesa-vulkan-drivers ubuntu-desktop ubuntu-desktop-minimal uuid-runtime xorg
The following NEW packages will be installed:
fonts-wine libcapi20-3 libfaudio0 libodbc2 libstb0 libvkd3d1 libwine libz-mingw-w64 wine wine64
0 upgraded, 10 newly installed, 7 to remove and 0 not upgraded.
Need to get 85.1 MB of archives.
After this operation, 495 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

The same if I use synaptic.
 
You obviously dont trust the apt process

If you have Timeshift snapshots, you can easily restore to a time before continuing to run the above process/command.
 
First when you got to
Do you want to continue? [Y/n] n
Did you enter Y to make the changes. [you cannot auto remove unless you have]
 
sudo apt install wine
...
The following packages will be removed :
fuse2fs libgl1-amber-dri mesa-vulkan-drivers ubuntu-desktop ubuntu-desktop-minimal uuid-runtime xorg

Any idea, what is wrong on my system ?
Just installing those same packages on my Ubuntu test vm and then I will try to install wine to see what happens on my test vm.
 
I always use...
Code:
sudo apt install wine

Never had any problems.
m1212.gif
 
Just to check. Can you open a terminal and share the output of the following commands?
Code:
ls -l /etc/apt/sources.list.d
grep wine /etc/apt/sources.list
 
Last edited:
Code:
tux@ubuntu:~$ grep -i version /etc/os-release
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy

tux@ubuntu:~$ sudo apt install wine
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  fonts-wine libcapi20-3 libdecor-0-0 libdecor-0-plugin-1-cairo libfaudio0 libgsm1 libodbc2 libopenal-data libopenal1 libosmesa6 libsdl2-2.0-0 libsndio7.0 libstb0 libvkd3d1 libwine libz-mingw-w64 ocl-icd-libopencl1 wine64
Suggested packages:
  odbc-postgresql tdsodbc libportaudio2 sndiod gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly ttf-mscorefonts-installer opencl-icd q4wine winbind winetricks playonlinux wine-binfmt dosbox exe-thumbnailer | kio-extras wine64-preloader
Recommended packages:
  libvkd3d-shader1 wine32
The following NEW packages will be installed:
  fonts-wine libcapi20-3 libdecor-0-0 libdecor-0-plugin-1-cairo libfaudio0 libgsm1 libodbc2 libopenal-data libopenal1 libosmesa6 libsdl2-2.0-0 libsndio7.0 libstb0 libvkd3d1 libwine libz-mingw-w64 ocl-icd-libopencl1 wine wine64
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 89.6 MB of archives.
After this operation, 578 MB of additional disk space will be used.
Do you want to continue? [Y/n]
My guess is that an alternative repo/ppa is being used causing this because on my Ubuntu 22.04 test vm the problem OP is having isn't happening. See post #8 to check your sources for different wine sources?
 
My guess is that an alternative repo/ppa is being used causing this because on my Ubuntu 22.04 test vm the problem OP is having isn't happening.
I think he just hasn't accepted the changes for them to install prior to running autoremove
 
I think he just hasn't accepted the changes for them to install prior to running autoremove
I don't think so because of this.
The following packages will be removed :
fuse2fs libgl1-amber-dri mesa-vulkan-drivers ubuntu-desktop ubuntu-desktop-minimal uuid-runtime xorg
It clearly states that it's going to remove those packages. Something similar happened to Linus Tech Tips when running PopOS and there was a bug in the Steam package that when installing Steam it removed his entire desktop environment. Could be a bug in the wine package from whatever other source it is being installed, but only speculating now.
 
You obviously dont trust the apt process

If you have Timeshift snapshots, you can easily restore to a time before continuing to run the above process/command.
Please refer to synaptic package description of ubuntu-desktop :
"This package depends on all Ubuntu desktop system packages.
It is also used to ensure a successful system update
and should therefore not be removed."
 
The "REMOVAL" does not appear here on simulated installations on debian or ubuntu.
It's possible to try and install a particular version of wine with apt-get using the format:
apt-get install <pkg>=1.1.1

One can determine the version of wine from the output of:
Code:
apt-cache show wine
and insert the version number in a command for example:
Code:
apt-get install wine=8.0.1~repack-3

If there's a bug in one wine version, particularly in the dependency requirements in it's .deb file, which may be so in this case, it's best to choose another version, or await an update. One can check the repos for available versions.
 
Last edited:
Just to check. Can you open a terminal and share the output of the following commands?
Code:
ls -l ls /etc/apt/sources.list.d
grep wine /etc/apt/sources.list

ls -l /etc/apt/sources.list.d
total 8
-rw-r--r-- 1 root root 144 Jan 30 15:34 xtradeb-ubuntu-apps-jammy.list
-rw-r--r-- 1 root root 144 Jan 30 15:34 xtradeb-ubuntu-apps-jammy.list.save

grep wine /etc/apt/sources.list
(no entry)
 
ls -l /etc/apt/sources.list.d
total 8
-rw-r--r-- 1 root root 144 Jan 30 15:34 xtradeb-ubuntu-apps-jammy.list
-rw-r--r-- 1 root root 144 Jan 30 15:34 xtradeb-ubuntu-apps-jammy.list.save
How about the output of the following?
Code:
grep wine /etc/apt/sources.list.d/*
 
From what I have read this is the dependency missing from some versions of Wine libgl1-amber-dri:amd64 , you can try running this before you try to update?

sudo dpkg -P --force-depends libgl1-amber-dri:amd64
 
An additional hint :
1. I did install wine successfully on the same system
2. I had a problem with one windows application (exe), did some changes, but only in my home user directory (.wine, ...)
3. After all no exe could be called by wine
4. Removed wine completely from my system (synaptic, remove package complete)
5 Try to install wine again, but now with the "ubuntu-desktop" issue, as described here.
 
That topic has some useful info. What happens when you run the following?
Code:
sudo apt autoremove --simulate
apt-cache policy wine
apt --simulate install wine
sudo aptitude install wine
 
Status
Not open for further replies.

Staff online


Top