Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Errors while trying to run 'sudo apt upgrade'

Featured Replies

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)

 

Solved by Igor

  • Author

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]

 

  • Author
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]

 

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.