systemd-sysv
in this image) Log file contents:
./dietpi-globals: line 1291: systemctl: command not found
@johnnyasantoss
Ui, a pure SysV Init image, even lacking it within APT repo. Must be a very old one? Where did you download the Debian image from and which Debian version is it?
In those cases the APT sources need to be updated first to allow installing SystemD.
@Fourdee
As we had this already one time, I think we should handle systemd-less images somehow:
DietPi-PREP
, otherwise a meaningful error message would be good, that systemd-sysv
needs to be installed manually by user and running on the systemd.@MichaIng I know that bananian is 3yr+ old but It uses Debian (jessie) apt sources as its default. I'm from Brazil and I've tried using every (working) source near me (from https://www.debian.org/mirror/list), still no luck trying to find systemd-sysv
in my system.
I'll flash another linux distro into my sd card later today, hope I find anything _newer_ than this one.
btw: I thought that DietPi would "fix" my apt repos in order to find systemd-sysv
.
PS: I'm new to SBCs.
@MichaIng
I don't know if we want or can support this within DietPi-PREP, otherwise a meaningful error message would be good, that systemd-sysv needs to be installed manually by user and running on the systemd.
Yep agree 馃憤
systemctl
is installed via the systemd
main package:
https://packages.debian.org/jessie/armhf/systemd/filelist
I'll make systemd package a pre-req to PREP.
@johnnyasantoss
Simply installing systemd might resolve this (or at least give us more errors we can look into)
apt-get install systemd
btw: I thought that DietPi would "fix" my apt repos in order to find systemd-sysv.
It will do this, however, only after globals are loaded, and user select of target board and distro is completed (which currently pre-req's systemd)
I've tried to install systemd
and systemd-sysv
none of them were listed on my sources. I'm formatting my sd card again and now I'll install a more updated distro.
@johnnyasantoss
At least we can see, if the repo then is the only issue. Try:
echo 'deb https://deb.debian.org/debian/ jessie main contrib non-free' >> /etc/apt/sources.list
apt-get update
apt-get install systemd
Ah hmm I overread that you actually added a repo from https://www.debian.org/mirror/list ? Hmm then systemd should be definitely available. Did you add the repo as above? Does apt-get update
show any error messages?
@MichaIng No, it didn't show any messages, it was only showing a message that other packages already have a dependency in systemd but it wasn't found.
I can reinstall that distro and try again just for the sake of you guys know what was happening.
I have reinstalled Bananian Linux and ran the command that @MichaIng asked.
This is the output:
100 root@bananapi ~ # apt-get install systemd systemd-sysv :(
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package systemd-sysv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
sysvinit-core
Package systemd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libsystemd-dev
E: Package 'systemd' has no installation candidate
E: Package 'systemd-sysv' has no installation candidate
100 root@bananapi ~ # apt install libsystemd-dev :(
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libsystemd-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libsystemd-dev' has no installation candidate
I'll now try to use a different Debian flavor(? I don't know what Bananian should be called)
Now I'm trying with Armbian and there's another problem. Is this a issue with this line?
The following packages will be upgraded: [165/1853]
apt apt-utils aptitude aptitude-common bash-completion binutils
console-setup console-setup-linux dmsetup gconf-service gconf2-common
gstreamer1.0-plugins-base hdparm ifupdown init-system-helpers jackd2 kbd
keyboard-configuration klibc-utils libass5 libatk1.0-0 libatk1.0-data
libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev libdbus-1-3
libdevmapper1.02.1 libdrm2 libegl1-mesa libfluidsynth1 libgbm1 libgconf-2-4
libgcrypt20 libglib2.0-0 libglib2.0-bin libgme0 libgphoto2-6
libgssapi-krb5-2 libgstreamer-plugins-bad1.0-0
libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgtk-3-0 libgtk-3-common
libgtop2-common libharfbuzz0b libjack-jackd2-0 libk5crypto3 libklibc
libkrb5-3 libkrb5support0 libltdl7 liblvm2app2.2 libmodplug1 libmount1
libmtp9 libncurses5 libncursesw5 libnih-dbus1 libnih1 liborc-0.4-0
libp11-kit0 libpango-1.0-0 libpango1.0-0 libpangocairo-1.0-0
libpangoft2-1.0-0 libpangoxft-1.0-0 libpulse0 libpulsedsp libreoffice-common
libreoffice-style-galaxy libselinux1 libsepol1 libsmartcols1 libstdc++6
libsystemd0 libtasn1-6 libthai0 libtinfo5 libtirpc1 libudev1 libva1
libwayland-client0 libwayland-cursor0 libxkbcommon0 libxrandr2
linux-libc-dev locales lxde lxde-common mount nfs-common pi-package-data
pulseaudio pulseaudio-utils rpcbind sysvinit-utils uno-libs3 ure
usb-modeswitch util-linux xserver-common
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
init systemd-sysv (due to init)
103 upgraded, 86 newly installed, 80 to remove and 801 not upgraded.
Need to get 120 MB of archives.
After this operation, 162 MB disk space will be freed.
E: There are problems and -y was used without --force-yes
@johnnyasantoss
Strange, that should not be occurring.
80 to remove and 801 not upgraded.
Does it fully list the 80 packages for removal? There may be a ARMbian based package flagged for removal which is also flagging init systemd-sysv
for removal.
Yep! after upgrading the package apt
and running apt autoremove -y --allow-remove-essentials
the script finished successfully! :tada:
Using base image Armbian_5.38_Bananapipro_Debian_stretch_next_4.14.14.7z
to DietPi :1st_place_medal:
Can I help someone with this image that I made?
Eg: upload it somewhere?
@johnnyasantoss
Good stuff, glad to hear its all working now 馃憤
Can I help someone with this image that I made?
Eg: upload it somewhere?
We will not host ARMbian images (of any kind) on the DietPi servers. Apologies. You'll need to host it on your own site/server.
Regardless, kind of you to offer this image to others 馃憤
I'll mark this as closed as the issue is now resolved.
Awesome! I'll write about this in my blog. Thanks for helping me out!
Most helpful comment
Yep! after upgrading the package
apt
and runningapt autoremove -y --allow-remove-essentials
the script finished successfully! :tada:Using base image
Armbian_5.38_Bananapipro_Debian_stretch_next_4.14.14.7z
to DietPi :1st_place_medal: