Cannot update OSMC because of libasound2-data dependency

Hello,

for a quite a while I cannot successfully update OSMC. Update fails while updating libasound-2data library. I tried to update it also manually, and below is error returned by apt commands:
http://paste.osmc.io/afadosifub.vhdl

I am not sure how to handle conflict between rbp2-device-osmc package, because as far I know it is an essential package for OSMC :slight_smile:

Full log below:
https://paste.osmc.tv/vodaturaci

Thank you very much for any help,
Jakub.

Although your sources.list file no longer shows it, you have previously included a link to the raspberrypi.org repo:

Start-Date: 2018-03-16  17:51:22
Commandline: /usr/bin/apt-get-real -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade
Install: sysvinit:armhf (2.88dsf-41+deb7u1, automatic), rbp2-image-4.14.26-2-osmc:armhf (2, automatic)
Upgrade: libpam0g:armhf (1.1.8-3.6, 1.1.8-3.6+rpi1), libcups2:armhf (2.2.1-8, 2.2.1-8+deb9u1), libdbus-1-3:armhf (1.10.24-0+deb9u1, 1.10.26-0+deb9u1), libfdisk1:armhf (2.29.2-1, 2.29.2-1+deb9u1), linux-libc-dev:armhf (4.9.65-3+deb9u2, 4.9.82-1+deb9u3), libcurl3:armhf (7.52.1-5+deb9u4, 7.52.1-5+deb9u5), libpam-modules:armhf (1.1.8-3.6, 1.1.8-3.6+rpi1), rbp2-mediacenter-osmc:armhf (17.6.0-22, 17.6.0-24), rbp-userland-osmc:armhf (2.6.0-1, 2.9.0-1), libc6-dev:armhf (2.24-11+deb9u1, 2.24-11+deb9u3), libwbclient0:armhf (2:4.5.12+dfsg-2+deb9u1, 2:4.5.12+dfsg-2+deb9u2), libsystemd0:armhf (232-25+deb9u1, 232-25+deb9u2), dbus:armhf (1.10.24-0+deb9u1, 1.10.26-0+deb9u1), gcc-4.8-base:armhf (4.8.4-1, 4.8.5-4), libasound2-data:armhf (1.1.3-5, 1.1.3-5+rpi3), libmount1:armhf (2.29.2-1, 2.29.2-1+deb9u1), libncurses5:armhf (6.0+20161126-1+deb9u1, 6.0+20161126-1+deb9u2), python3-pip:armhf (9.0.1-2, 9.0.1-2+rpt2), libc6:armhf (2.24-11+deb9u1, 2.24-11+deb9u3), util-linux:armhf (2.29.2-1, 2.29.2-1+deb9u1), gcc-4.9-base:armhf (4.9.2-10, 4.9.3-14), openssh-sftp-server:armhf (1:7.4p1-10+deb9u2, 1:7.4p1-10+deb9u3), rbp-bootloader-osmc:armhf (2.5.0-1, 2.8.0-1), udev:armhf (232-25+deb9u1, 232-25+deb9u2), locales:armhf (2.24-11+deb9u1, 2.24-11+deb9u3), libpam-runtime:armhf (1.1.8-3.6, 1.1.8-3.6+rpi1), gcc-6-base:armhf (6.3.0-18, 6.3.0-18+rpi1+deb9u1), libncursesw5:armhf (6.0+20161126-1+deb9u1, 6.0+20161126-1+deb9u2), libudev1:armhf (232-25+deb9u1, 232-25+deb9u2), rbp2-kernel-osmc:armhf (3.9.21, 3.9.40), libapparmor1:armhf (2.11.0-3, 2.11.0-3+deb9u2), libgcc1:armhf (1:6.3.0-18, 1:6.3.0-18+rpi1+deb9u1), mount:armhf (2.29.2-1, 2.29.2-1+deb9u1), ntp:armhf (1:4.2.8p10+dfsg-3+deb9u1, 1:4.2.8p10+dfsg-3+deb9u2), samba-libs:armhf (2:4.5.12+dfsg-2+deb9u1, 2:4.5.12+dfsg-2+deb9u2), libblkid1:armhf (2.29.2-1, 2.29.2-1+deb9u1), libc-l10n:armhf (2.24-11+deb9u1, 2.24-11+deb9u3), libc-bin:armhf (2.24-11+deb9u1, 2.24-11+deb9u3), libtinfo5:armhf (6.0+20161126-1+deb9u1, 6.0+20161126-1+deb9u2), libnss-myhostname:armhf (232-25+deb9u1, 232-25+deb9u2), libvorbisenc2:armhf (1.3.5-4, 1.3.5-4+deb9u1), samba-common:armhf (2:4.5.12+dfsg-2+deb9u1, 2:4.5.12+dfsg-2+deb9u2), systemd-sysv:armhf (232-25+deb9u1, 232-25+deb9u2), libuuid1:armhf (2.29.2-1, 2.29.2-1+deb9u1), base-files-osmc:armhf (2.5.1, 2.5.6), libdbus-1-dev:armhf (1.10.24-0+deb9u1, 1.10.26-0+deb9u1), libpam-systemd:armhf (232-25+deb9u1, 232-25+deb9u2), systemd:armhf (232-25+deb9u1, 232-25+deb9u2), libsmartcols1:armhf (2.29.2-1, 2.29.2-1+deb9u1), ncurses-bin:armhf (6.0+20161126-1+deb9u1, 6.0+20161126-1+deb9u2), libpam-modules-bin:armhf (1.1.8-3.6, 1.1.8-3.6+rpi1), openssh-server:armhf (1:7.4p1-10+deb9u2, 1:7.4p1-10+deb9u3), libreadline6:armhf (6.3-8+b3, 6.3-9), libsmbclient:armhf (2:4.5.12+dfsg-2+deb9u1, 2:4.5.12+dfsg-2+deb9u2), openssh-client:armhf (1:7.4p1-10+deb9u2, 1:7.4p1-10+deb9u3), libmysqlclient18:armhf (5.5.58-0+deb8u1, 5.5.59-0+deb7u1), bsdutils:armhf (1:2.29.2-1, 1:2.29.2-1+deb9u1), libasound2:armhf (1.1.3-5, 1.1.3-5+rpi3), mediacenter-skin-osmc:armhf (17.0.2-6, 17.0.4-2), ncurses-base:armhf (6.0+20161126-1+deb9u1, 6.0+20161126-1+deb9u2), lsb-release:armhf (9.20161125, 9.20161125+rpi1), libc-dev-bin:armhf (2.24-11+deb9u1, 2.24-11+deb9u3), multiarch-support:armhf (2.24-11+deb9u1, 2.24-11+deb9u3), lsb-base:armhf (9.20161125, 9.20161125+rpi1), cron:armhf (3.0pl1-128+b1, 3.0pl1-128+deb9u1), rbp2-device-osmc:armhf (1.4.7, 1.4.8), libvorbis0a:armhf (1.3.5-4, 1.3.5-4+deb9u1), libtasn1-6:armhf (4.10-1.1, 4.10-1.1+deb9u1), libtext-iconv-perl:armhf (1.7-5+b4, 1.7-5+b8), libstdc++6:armhf (6.3.0-18, 6.3.0-18+rpi1+deb9u1), curl:armhf (7.52.1-5+deb9u4, 7.52.1-5+deb9u5), mediacenter-addon-osmc:armhf (3.0.655, 3.0.657), python-pip-whl:armhf (9.0.1-2, 9.0.1-2+rpt2), libpng12-0:armhf (1.2.50-2+deb8u3, 1.2.54-6), python-pip:armhf (9.0.1-2, 9.0.1-2+rpt2), libcurl3-gnutls:armhf (7.52.1-5+deb9u4, 7.52.1-5+deb9u5), base-files:armhf (9.9+deb9u3, 9.9+rpi1+deb9u4), libtext-charwidth-perl:armhf (0.04-7+b6, 0.04-7+b7), tzdata:armhf (2017c-0+deb9u1, 2018c-0+deb9u1)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2018-03-16  17:55:34

All those packages ending with +rpi1 or +rpi3 have come from the raspberrypi.org repo.

You can try the following:

sudo apt-get update
sudo apt-get install --reinstall libasound2=1.1.3-5
sudo apt-get install --reinstall libasound2-data=1.1.3-5
1 Like

Hello dillthedog and thank you very much for your reply.

When I try to reinstall those packages, everything runs smoothly until I try to run dist-upgrade again. Running dist-upgrade tries to install again those *-rpi3 packages and it succeeds for libasound2 but fails for libasound2-data. Paste from command line: http://paste.osmc.io/acenosuqov.vhdl

I’m guessing that you didn’t run the apt-get update step.

I guess it’s still in there in the rpi.list file

3 Likes

So as @fzinken spotted, you need to comment out or remove the rpi.list file since it’s causing conflicts.

@dillthedog @fzinken Yes! Removing /etc/apt/sources.list.d/rpi.list worked like a charm :slight_smile:

Thank you both for your help :slight_smile:. Problem is now solved :slight_smile:.