Problems using apt-get in Volumio

Hi!

I’m trying to get Samba updated to the latest version, following this guide (EDIT: This is the wrong link I originally posted medium.com/@abjurato/using-rasp … fceecb6876 but I meant to link to this other article https://kirb.me/2018/03/24/using-samba-as-a-time-machine-network-server.html). I need Samba over 4.8 and the latest is 4.10, but the repos seem to have only 4.2 available.

Anyhoo, using apt-get seems to be impossible, as anything I try returns an error. Starting with the first command, uninstalling samba, I get this error

volumio@volumio:~$ sudo apt-get remove samba Reading package lists... Done Building dependency tree Reading state information... Done Package 'samba' is not installed, so not removed You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libc6 : Depends: libgcc1 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

“Ah! I’ll install libgcc1, then” I thought…

[code]volumio@volumio:~$ sudo apt-get install libgcc1
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
libgcc1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/39.5 kB of archives.
After this operation, 160 kB of additional disk space will be used.
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
dpkg: dependency problems prevent configuration of libc6:armhf:
libc6:armhf depends on libgcc1; however:
Package libgcc1 is not installed.

dpkg: error processing package libc6:armhf (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of multiarch-support:
multiarch-support depends on libc6 (>= 2.13-5); however:
Package libc6:armhf is not configured yet.

dpkg: error processing package multiarch-support (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libc6:armhf
multiarch-support
E: Sub-process /usr/bin/dpkg returned an error code (1)[/code]

The suggestion of using apt-get -f install fails similarly

[code]volumio@volumio:~$ sudo apt-get -f install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following extra packages will be installed:
libgcc1
The following NEW packages will be installed:
libgcc1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/39.5 kB of archives.
After this operation, 160 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
dpkg: dependency problems prevent configuration of libc6:armhf:
libc6:armhf depends on libgcc1; however:
Package libgcc1 is not installed.

dpkg: error processing package libc6:armhf (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of multiarch-support:
multiarch-support depends on libc6 (>= 2.13-5); however:
Package libc6:armhf is not configured yet.

dpkg: error processing package multiarch-support (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libc6:armhf
multiarch-support
E: Sub-process /usr/bin/dpkg returned an error code (1)[/code]

Any ideas on how to proceed?

I see that samba is not installed (I think) in volumio, but that doesn’t explain why remove fails. I tried to install other packages as a test, but they also failed.

Any ideas are welcome. Thanks!

Hi mundodisco8!

First thing I noticed by looking at the article you linked: It seems the author recommends downgrading to jessie after installing stretch.
To me this is not good, as it leaves your system in a mix of versions, maybe leading to other problems.

He mentions he does that in order to install a dependency called libmysqlclient-dev (sometimes he misspelled it as libmysqlclient-deb)
I think you can find the same package on stretch by the name default-libmysqlclient-dev and avoid downgrading to jessie.

https://packages.debian.org/search?keywords=libmysqlclient-dev

Sadly for you, stretch comes with Samba 4.5 which is less than your requirement of 4.8 or greater.
By the way I couldn’t find any reference to Samba of any versions on the provided link. Do you know where that requirement comes from?

On other note, in your first command, it looks like you are trying to remove samba, and apt is telling you that you don’t have it installed. Maybe you wanted to install samba instead of removing it?

Sorry, it seems I linked to the wrong article :S

The correct article starts the process by removing samba, if present, from the system, and then proceeds to prepare the environment to build from the latest release (at the time of writing 4.8, but 4.10 now writing).

The reason why I wanted to do this is that starting from 4.8, samba includes the option of working as a time machine server. I have two devices that come with time machine support, but they are old, and changes in iOS have rendered them obsolete. I wanted to explore the possibilities of using a raspberry pi as a backup server: I know is not ideal, but it’s HW that is already running 24/7 at my home, and I don’t need blazing fast throughputs, and also is just a test to play around.

If that’s not possible, then I will run it on its own RPI, but that’s another 5W that I could be not wasting :smiley:

Oh then I guess you can ignore that error from apt-get.

If upgrading samba version gets hard, and if you want to experiment, maybe you can try upgrading from stretch to buster instead downgrading to jessie.

Debian booster is on the final sprint to get released (it’s already frozen and focused on solving release-critical bugs). Raspbian has already repos available for buster. It comes with samba 4.9. Maybe you have to deal with other workarounds but who knows it may suit you better.

Cheers!

I think you should look to run a second RPi as your server. Volumio is an optimised distribution that may well prove problematical if you try and make it a general workhorse.