Article 5PYCG Cannot fix broken package using "sudo apt --fix-broken install" to fix XFCE packages for Zorin OS 16 Core

Cannot fix broken package using "sudo apt --fix-broken install" to fix XFCE packages for Zorin OS 16 Core

by
AltFantasy
from LinuxQuestions.org on (#5PYCG)
tried to run the command, but then got this error:

Code:Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
xubuntu-default-settings
The following NEW packages will be installed:
xubuntu-default-settings
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
2 not fully installed or removed.
Need to get 0 B/40.3 kB of archives.
After this operation, 266 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 329351 files and directories currently installed.)
Preparing to unpack .../xubuntu-default-settings_20.04.4_all.deb ...
Unpacking xubuntu-default-settings (20.04.4) ...
dpkg: error processing archive /var/cache/apt/archives/xubuntu-default-settings_
20.04.4_all.deb (--unpack):
trying to overwrite '/etc/skel/.config/libreoffice/4/user/registrymodifications
.xcu', which is also in package zorin-os-default-settings 16.3
Errors were encountered while processing:
/var/cache/apt/archives/xubuntu-default-settings_20.04.4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)then I tried to run Code: sudo dpkg --configure -a, but got an error:
Code:dpkg: dependency problems prevent configuration of xubuntu-core:
xubuntu-core depends on xubuntu-default-settings; however:
Package xubuntu-default-settings is not installed.

dpkg: error processing package xubuntu-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xubuntu-desktop:
xubuntu-desktop depends on xubuntu-core; however:
Package xubuntu-core is not configured yet.
xubuntu-desktop depends on xubuntu-default-settings; however:
Package xubuntu-default-settings is not installed.

dpkg: error processing package xubuntu-desktop (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
xubuntu-core
xubuntu-desktoptried to purge the packages with Code: sudo apt-get remove --purge xubuntu-desktop, but there's an error again:

Code:Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
xubuntu-core : Depends: xubuntu-default-settings but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).I've also tried Code: sudo apt-get install xubuntu-default-settings (also tried adding in --reinstall), but I kept on getting this:

Code:bphuc@LAPTOP-E459:~$ sudo apt-get install xubuntu-default-settings
[sudo] password for bphuc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
xubuntu-default-settings
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
2 not fully installed or removed.
Need to get 0 B/40.3 kB of archives.
After this operation, 266 kB of additional disk space will be used.
(Reading database ... 329345 files and directories currently installed.)
Preparing to unpack .../xubuntu-default-settings_20.04.4_all.deb ...
Unpacking xubuntu-default-settings (20.04.4) ...
dpkg: error processing archive /var/cache/apt/archives/xubuntu-default-settings_20.04.4_all.deb (--unpack):
trying to overwrite '/etc/skel/.config/libreoffice/4/user/registrymodifications.xcu', which is also in package zorin-os-default-settings 16.3
Errors were encountered while processing:
/var/cache/apt/archives/xubuntu-default-settings_20.04.4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)Help?latest?d=yIl2AUoC8zA latest?i=UqKRrVquxsg:poGo_dAxLhY:F7zBnMy latest?i=UqKRrVquxsg:poGo_dAxLhY:V_sGLiP latest?d=qj6IDK7rITs latest?i=UqKRrVquxsg:poGo_dAxLhY:gIN9vFwUqKRrVquxsg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments