Can't update my OSMC


#1

Hello

I encountered a problem while I was trying to upgrade my OSMC on RPi2. When I tried to upgrade from the terminal I got an error:

The following packages have unmet dependencies:
 armv7-network-osmc : depends: armv7-bluez-osmc but is not installed
E: Unresolved dependencies. Try apt-get -f install 

When t did what it suggested I got this:

(Reading database ... 39497 files and directories currently installed.)
Preparing to unpack .../armv7-bluez-osmc_5.3.9-1_armhf.deb ...
Unpacking armv7-bluez-osmc (5.3.9-1) ...
dpkg: error processing archive /var/cache/apt/archives/armv7-bluez-osmc_5.3.9-1_armhf.deb (--unpack):
 trying to overwrite '/usr/bin/hcidump', which is also in package bluez-hcidump 5.23-2+b1
dpkg-deb: error: subprocess paste was killed by signal (Prekinjen cevovod)
Processing triggers for dbus (1.8.20-0+deb8u1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/armv7-bluez-osmc_5.3.9-1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Does anybody have any suggestions on how to resolve this problem. It would be very appreciated.
Thank you for your help in advance
Blaž


#2

Exactly what commands are you running?


#3

apt-get upgrade

apt-get -f install


#4

NEVER run apt-get upgrade on OSMC. Always use apt-get dist-upgrade!

https://osmc.tv/wiki/general/keeping-your-osmc-system-up-to-date/

Also, you DID run apt-get update first right?


#5

Yes, I run apt-get update.

Didn’t know about apt-get upgrade. But nothing changes if I run apt-get dist-upgrade.


#6

Provide grab-logs -a please.


#7

http://paste.osmc.io/haqulaxate


#8
Start-Date: 2016-04-19  13:47:15
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.8-8, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-04-19  13:47:38

Start-Date: 2016-05-03  19:59:51
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:00:17

Start-Date: 2016-05-03  20:02:44
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:03:08

Start-Date: 2016-05-03  20:15:50
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:16:09

Start-Date: 2016-05-03  20:18:20
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:18:43

Start-Date: 2016-05-03  20:32:49
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:33:15

Start-Date: 2016-05-03  20:46:21
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:46:45

---------------------- APT history.log END --------------- B8sj7DO8

You have clearly not run sudo apt-get dist-upgrade today.


#9

I did. And I run it twice right now. But I get the same error as before…


#10

I run grab-logs -a again and there is still no entry of that I run the command.… And I run it three times…


#11

On 28th October 2015, you appear to have installed bluez-hcidump which is conflicting with OSMC’s distribution of bluez, which is downstreamed since the March update.

sudo apt-get remove --purge bluez-hcidump

In future:

  • tell us which version of OSMC you are updating from
  • tell us which additional packages you have installed
  • allow OSMC to handle your Bluetooth connectivity.

#12

Thank you for your quick responses. I tried your proposal and got the following:

sudo apt-get remove --purge bluez-hcidump Reading package list ... Done building dependency tree Reading state information ... Done Try running 'apt-get -f install', to correct the following: The following packages have unmet dependencies: armv7-network-osmc : Depends: armv7-bluez-osmc but will not be installed E: Unmet dependencies. Try 'apt-get -f install' without packages (or provide a solution)

ps: My terminal is not in English, so I did the best I could to translate it…


#13

Did you try?


#14

Yes. I got an error which I posted in my first post (second one).


#15

Post the output of dpkg -l | bluez


#16

Here is what I got, when I run dpkg -l | bluez:

dpkg -l | bluez -bash: bluez: command not found


#17

OOOO, I think I got it…

I did
sudo dpkg -r bluez-hcidump
than
sudo apt-get update
and
sudo apt-get -f install
and now I’m running sudo apt-get dist-upgrade at 10%… So far so gut…
Will keep you posted :slight_smile:


Error updating May
#18

Ok… That did it… I had to run sudo apt-get install --reinsall armv7-network-osmc because I got an error that it was half-installed, but now it works like charm!:slight_smile:

Thank you guys for all your help.


#19

My typo, I meant dpkg -l | grep bluez

Anyhow good that you solved it


#20

4 posts were merged into an existing topic: Error updating May