LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Zorin OS (https://www.linuxquestions.org/questions/zorin-os-107/)
-   -   Cannot fix broken package using "sudo apt --fix-broken install" to fix XFCE packages for Zorin OS 16 Core (https://www.linuxquestions.org/questions/zorin-os-107/cannot-fix-broken-package-using-sudo-apt-fix-broken-install-to-fix-xfce-packages-for-zorin-os-16-core-4175701036/)

AltFantasy 09-24-2021 06:20 AM

Cannot fix broken package using "sudo apt --fix-broken install" to fix XFCE packages for Zorin OS 16 Core
 
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-desktop

tried 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?

uteck 09-24-2021 09:41 AM

Quote:

Originally Posted by AltFantasy (Post 6286560)
tried to run the command, but then got this error:

Code:

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?

This is the specific error, zorin-os-default-settings 16.3 has created a file (/etc/skel/.config/libreoffice/4/user/registrymodifications.xcu) which xubuntu-default-settings also wants to write in that same location. Apt sees that 2 files are trying to overwrite each other and it quits.

You can either remove zorin-os-default-settings, which might still give the error since the file will still be in place, but the owner is gone, so not really sure. Or you can install xubuntu-default-settings_20.04.4_all.deb with the force.
Code:

dpkg --force-all -i  /var/cache/apt/archives/xubuntu-default-settings_20.04.4_all.deb

AltFantasy 09-24-2021 10:10 AM

Quote:

Originally Posted by uteck (Post 6286597)
This is the specific error, zorin-os-default-settings 16.3 has created a file (/etc/skel/.config/libreoffice/4/user/registrymodifications.xcu) which xubuntu-default-settings also wants to write in that same location. Apt sees that 2 files are trying to overwrite each other and it quits.

You can either remove zorin-os-default-settings, which might still give the error since the file will still be in place, but the owner is gone, so not really sure. Or you can install xubuntu-default-settings_20.04.4_all.deb with the force.
Code:

dpkg --force-all -i  /var/cache/apt/archives/xubuntu-default-settings_20.04.4_all.deb

idk, too bad the
Code:

sudo dpkg --configure - a
and
Code:

sudo apt-get install
commands got bricked, and I removed the packages files already, so now it's corrupted. Got help from the Xubuntu team on the IRC chat platform though, they said I need to do a fresh reinstall of the OS, so that's what I'll do. Thanks for the help!

descendant_command 09-24-2021 03:09 PM

That is the recommended advice for people presenting with gunshot wounds to both feet.

AltFantasy 09-24-2021 06:06 PM

Quote:

Originally Posted by descendant_command (Post 6286661)
That is the recommended advice for people presenting with gunshot wounds to both feet.

I regret shotting myself in both feet, but whatever, at least I learnt something out of this.

AltFantasy 09-25-2021 02:15 AM

Quote:

Originally Posted by uteck (Post 6286597)
This is the specific error, zorin-os-default-settings 16.3 has created a file (/etc/skel/.config/libreoffice/4/user/registrymodifications.xcu) which xubuntu-default-settings also wants to write in that same location. Apt sees that 2 files are trying to overwrite each other and it quits.

You can either remove zorin-os-default-settings, which might still give the error since the file will still be in place, but the owner is gone, so not really sure. Or you can install xubuntu-default-settings_20.04.4_all.deb with the force.
Code:

dpkg --force-all -i  /var/cache/apt/archives/xubuntu-default-settings_20.04.4_all.deb

Ok, reinstalled Zorin OS now, will this work or will I have to reinstall again for the 2nd time?

Edit: tried that command, there's an error:
Code:

W: Possible missing firmware /lib/firmware/i915/skl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/dg1_dmc_ver2_02.bin for module i915
I: The initramfs will attempt to resume from /dev/sda4
I: (UUID=9fc9d719-b545-4757-8987-fa32946d16f2)
I: Set the RESUME variable to override this.

Help for this error?

descendant_command 09-25-2021 02:37 AM

Quote:

Originally Posted by AltFantasy (Post 6286753)
Ok, reinstalled Zorin OS now, will this work or will I have to reinstall again for the 2nd time?

Well the same actions will give the same result.
Why are you trying to install an incompatible package?
Quote:


Edit: tried that command, there's an error:
Code:

W: Possible missing firmware /lib/firmware/i915/skl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/dg1_dmc_ver2_02.bin for module i915
I: The initramfs will attempt to resume from /dev/sda4
I: (UUID=9fc9d719-b545-4757-8987-fa32946d16f2)
I: Set the RESUME variable to override this.

Help for this error?
What error?
The above info has nothing to do with your dpkg adventures.

AltFantasy 09-25-2021 02:42 AM

fuck off
 
Quote:

Originally Posted by descendant_command (Post 6286756)
Well the same actions will give the same result.
Why are you trying to install an incompatible package?
What error?
The above info has nothing to do with your dpkg adventures.

Never mind, don't care about you anyway, lolololol

AltFantasy 09-25-2021 06:51 AM

Quote:

Originally Posted by AltFantasy (Post 6286753)
Ok, reinstalled Zorin OS now, will this work or will I have to reinstall again for the 2nd time?

Edit: tried that command, there's an error:
Code:

W: Possible missing firmware /lib/firmware/i915/skl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/dg1_dmc_ver2_02.bin for module i915
I: The initramfs will attempt to resume from /dev/sda4
I: (UUID=9fc9d719-b545-4757-8987-fa32946d16f2)
I: Set the RESUME variable to override this.

Help for this error?

Solved the possible missing firmware problem, now to the initramfs one, help for this?


All times are GMT -5. The time now is 07:03 AM.