Jump to content

Errors while trying to run 'sudo apt upgrade'


robnielsen
Go to solution Solved by Igor,

Recommended Posts

I'm getting the following errors when trying to upgrade 

 

rob@orangepi5:~$ uname -a
Linux orangepi5 6.1.75-vendor-rk35xx #1 SMP Wed Aug 21 11:45:59 UTC 2024 aarch64 GNU/Linux
rob@orangepi5:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 armbian-bsp-cli-orangepi5 : Depends: armbian-bsp-cli-orangepi5-current (= 24.8.2) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
rob@orangepi5:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  armbian-bsp-cli-orangepi5-current
The following NEW packages will be installed:
  armbian-bsp-cli-orangepi5-current
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/430 kB of archives.
After this operation, 1,435 kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 104089 files and directories currently installed.)
Preparing to unpack .../armbian-bsp-cli-orangepi5-current_24.8.2_arm64.deb ...
Armbian 'armbian-bsp-cli-orangepi5-current' for '1-PC868b-V1187-H21c6-B199a-R7697': 'preinst' starting.
Armbian 'armbian-bsp-cli-orangepi5-current' for '1-PC868b-V1187-H21c6-B199a-R7697': 'preinst' finishing.
Unpacking armbian-bsp-cli-orangepi5-current (24.8.2) ...
dpkg: error processing archive /var/cache/apt/archives/armbian-bsp-cli-orangepi5-current_24.8.2_arm64.deb (--unpack):
 trying to overwrite '/etc/X11/xorg.conf.d/01-armbian-defaults.conf', which is also in package armbian-bsp-cli-orangepi5-legacy 24.5.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Armbian 'armbian-bsp-cli-orangepi5-current' for '1-PC868b-V1187-H21c6-B199a-R7697': 'postrm' starting.
Armbian 'armbian-bsp-cli-orangepi5-current' for '1-PC868b-V1187-H21c6-B199a-R7697': 'postrm' finishing.
Errors were encountered while processing:
 /var/cache/apt/archives/armbian-bsp-cli-orangepi5-current_24.8.2_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

All I've done is apt update and somehow it got in this state. Any suggestions on how to fix? I tried the following but didn't work:
 

rob@orangepi5:~$ sudo apt remove armbian-bsp-cli-orangepi5-legacy
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 armbian-bsp-cli-orangepi5 : Depends: armbian-bsp-cli-orangepi5-current (= 24.8.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
rob@orangepi5:~$
rob@orangepi5:~$
rob@orangepi5:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  armbian-bsp-cli-orangepi5-current
The following NEW packages will be installed:
  armbian-bsp-cli-orangepi5-current
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/430 kB of archives.
After this operation, 1,435 kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 104089 files and directories currently installed.)
Preparing to unpack .../armbian-bsp-cli-orangepi5-current_24.8.2_arm64.deb ...
Armbian 'armbian-bsp-cli-orangepi5-current' for '1-PC868b-V1187-H21c6-B199a-R7697': 'preinst' starting.
Armbian 'armbian-bsp-cli-orangepi5-current' for '1-PC868b-V1187-H21c6-B199a-R7697': 'preinst' finishing.
Unpacking armbian-bsp-cli-orangepi5-current (24.8.2) ...
dpkg: error processing archive /var/cache/apt/archives/armbian-bsp-cli-orangepi5-current_24.8.2_arm64.deb (--unpack):
 trying to overwrite '/etc/X11/xorg.conf.d/01-armbian-defaults.conf', which is also in package armbian-bsp-cli-orangepi5-legacy 24.5.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Armbian 'armbian-bsp-cli-orangepi5-current' for '1-PC868b-V1187-H21c6-B199a-R7697': 'postrm' starting.
Armbian 'armbian-bsp-cli-orangepi5-current' for '1-PC868b-V1187-H21c6-B199a-R7697': 'postrm' finishing.
Errors were encountered while processing:
 /var/cache/apt/archives/armbian-bsp-cli-orangepi5-current_24.8.2_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

 

Here's the legacy packages that are installed:
 

rob@orangepi5:~$ apt list --installed| grep legacy

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

armbian-bsp-cli-orangepi5-legacy/bookworm,now 24.5.1 arm64 [installed]
linux-dtb-legacy-rk35xx/bookworm,now 24.5.1 arm64 [installed]
linux-headers-legacy-rk35xx/bookworm,now 24.5.1 arm64 [installed]
linux-image-legacy-rk35xx/bookworm,now 24.5.1 arm64 [installed]
linux-u-boot-orangepi5-legacy/bookworm,now 24.5.1 arm64 [installed]

 

Link to comment
Share on other sites

56 minutes ago, SteeMan said:

Can you run:

apt list --installed| grep armbian

apt list --installed| grep linux

 

Here you go:

 

rob@orangepi5:~$ apt list --installed| grep armbian

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

armbian-bsp-cli-orangepi5-legacy/bookworm,now 24.5.1 arm64 [installed]
armbian-bsp-cli-orangepi5/bookworm,now 24.8.2 arm64 [installed]
armbian-config/bookworm,bookworm,bookworm,now 24.8.2 all [installed]
armbian-firmware/bookworm,bookworm,bookworm,now 24.8.2 all [installed]
armbian-plymouth-theme/bookworm,bookworm,bookworm,now 24.8.2 all [installed]
armbian-zsh/bookworm,bookworm,bookworm,now 24.8.2 all [installed]
hostapd/now 3:2.10-6~armbian22.02.3+1 arm64 [installed,local]
rob@orangepi5:~$ apt list --installed| grep linux

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

binutils-aarch64-linux-gnu/stable,now 2.40-2 arm64 [installed,automatic]
console-setup-linux/stable,stable,now 1.221 all [installed]
libselinux1/stable,now 3.4-1+b6 arm64 [installed]
linux-base/stable,stable,now 4.9 all [installed]
linux-dtb-legacy-rk35xx/bookworm,now 24.5.1 arm64 [installed]
linux-dtb-vendor-rk35xx/bookworm,now 24.8.2 arm64 [installed]
linux-headers-legacy-rk35xx/bookworm,now 24.5.1 arm64 [installed]
linux-image-legacy-rk35xx/bookworm,now 24.5.1 arm64 [installed]
linux-image-vendor-rk35xx/bookworm,now 24.8.2 arm64 [installed]
linux-libc-dev/now 23.02.2 arm64 [installed,local]
linux-u-boot-orangepi5-legacy/bookworm,now 24.5.1 arm64 [installed]
util-linux-extra/stable,stable-security,now 2.38.1-5+deb12u1 arm64 [installed,automatic]
util-linux/stable,stable-security,now 2.38.1-5+deb12u1 arm64 [installed]

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines