0
Jean-Dom

Upgrade problem with 5.20 on Xenial

Recommended Posts

Hi,

 

I have received an upgrade notification.

While applying changes, I received this message for 1 package (out of 5).

 

(Reading database ... 73767 files and directories currently installed.)
Preparing to unpack .../armbian-tools-xenial_5.20_armhf.deb ...
Unpacking armbian-tools-xenial (5.20) over (5.14) ...
dpkg: error processing archive /var/cache/apt/archives/armbian-tools-xenial_5.20_armhf.deb (--unpack):
 trying to overwrite '/etc/init.d/brcm40183-patch', which is also in package linux-xenial-root-orangepilite 5.16
Processing triggers for systemd (229-4ubuntu8) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 /var/cache/apt/archives/armbian-tools-xenial_5.20_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

Now, I have 4 packages partially installed and one not installed.

 

I have not rebooted the device.

What should I do?

 

Note: It is on an Orange Pi Lite.

 

Thanks in advance for your help.

 

Jean-Dominique.

Share this post


Link to post
Share on other sites

Thanks for the answer. But I still have an error.

 

root@orangepilite:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up armbian-firmware (5.20) ...
Setting up linux-headers-sun8i (5.20) ...
Compiling headers - please wait ...
Setting up linux-image-sun8i (5.20) ...
update-initramfs: Generating /boot/initrd.img-3.4.112-sun8i
Setting up linux-u-boot-orangepilite-default (5.20) ...

 

root@orangepilite:~# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  armbian-tools-xenial
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/15,2 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 73767 files and directories currently installed.)
Preparing to unpack .../armbian-tools-xenial_5.20_armhf.deb ...
Unpacking armbian-tools-xenial (5.20) over (5.14) ...
dpkg: error processing archive /var/cache/apt/archives/armbian-tools-xenial_5.20_armhf.deb (--unpack):
 trying to overwrite '/etc/init.d/brcm40183-patch', which is also in package linux-xenial-root-orangepilite 5.16
Processing triggers for systemd (229-4ubuntu8) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 /var/cache/apt/archives/armbian-tools-xenial_5.20_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

Still not yet rebooted

Share this post


Link to post
Share on other sites

I'll try to produce an fix for those troubles tomorrow. In the mean time:

dpkg -r linux-xenial-root-orangepilite
apt-get -f install
apt-get upgrade
apt-get install linux-xenial-root-orangepilite

Share this post


Link to post
Share on other sites

Thanks for this second response. Something has changed, because we get "which is also in... xenial 5.20" instead of "... pilite 5.16".

But I still get an error.

Also, I wonder why we receive a "get .... pilite 5.16" instead of "pilite 5.20". Are you sure that the correct version is available?

 

root@orangepilite:~# dpkg -r linux-xenial-root-orangepilite
(Reading database ... 73767 files and directories currently installed.)
Removing linux-xenial-root-orangepilite (5.16) ...
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-3.4.112-sun8i
Processing triggers for systemd (229-4ubuntu8) ...
Processing triggers for ureadahead (0.100.0-19) ...
root@orangepilite:~# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@orangepilite:~# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  armbian-tools-xenial
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/15,2 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 73684 files and directories currently installed.)
Preparing to unpack .../armbian-tools-xenial_5.20_armhf.deb ...
Unpacking armbian-tools-xenial (5.20) over (5.14) ...
Processing triggers for systemd (229-4ubuntu8) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up armbian-tools-xenial (5.20) ...
root@orangepilite:~# apt-get install linux-xenial-root-orangepilite
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  linux-xenial-root-orangepilite
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 372 kB of archives.
After this operation, 1 024 B of additional disk space will be used.
Get:1 http://apt.armbian.comxenial/main armhf linux-xenial-root-orangepilite armhf 5.16 [372 kB]
Fetched 372 kB in 0s (400 kB/s)                         
Selecting previously unselected package linux-xenial-root-orangepilite.
(Reading database ... 73678 files and directories currently installed.)
Preparing to unpack .../linux-xenial-root-orangepilite_5.16_armhf.deb ...
Unpacking linux-xenial-root-orangepilite (5.16) ...
dpkg: error processing archive /var/cache/apt/archives/linux-xenial-root-orangepilite_5.16_armhf.deb (--unpack):
 trying to overwrite '/etc/default/brcm40183', which is also in package armbian-tools-xenial 5.20
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-3.4.112-sun8i
Errors were encountered while processing:
 /var/cache/apt/archives/linux-xenial-root-orangepilite_5.16_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

Device still not rebooted.

Share this post


Link to post
Share on other sites

Far better with 5.20 :) :

root@orangepilite:~# apt-get --reinstall install linux-xenial-root-orangepilite
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  linux-xenial-root-orangepilite
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 360 kB of archives.
After this operation, 1 024 B of additional disk space will be used.
Get:1 http://apt.armbian.comxenial/main armhf linux-xenial-root-orangepilite armhf 5.20 [360 kB]
Fetched 360 kB in 2s (131 kB/s)
(Reading database ... 73678 files and directories currently installed.)
Preparing to unpack .../linux-xenial-root-orangepilite_5.20_armhf.deb ...
Unpacking linux-xenial-root-orangepilite (5.20) ...
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-3.4.112-sun8i
Processing triggers for systemd (229-4ubuntu8) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up linux-xenial-root-orangepilite (5.20) ...
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-3.4.112-sun8i

 

Rebooted. OK.

 

Thanks x N… You can close the topic.

Share this post


Link to post
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...
0