Open MFDGaming opened 6 years ago
????
I have the same issue,I cannot add user or group
Maybe blacklist systemd and force apt to skip that dependency ... maybe some hints in Devuan.
I found the repeatedly attempting an install results in some unconfigured packages but the requested one may still work.
Did anyone find how to fix this? Using the stubs version just threw up another error for me.
This is blocking me since I can't successfully install systemd or dbus
cd /var/cache/apt/archives dpkg -I *
Thanks for your quick response.
"dpkg-query: no packages found matching
(Don't know how to transfer stderr-output-file out of termux to here)
What are you looking for?
well I don't know but the error seems related to a missing file
Thanks for trying. But the list literally contains every package you can think of - X11, python3, lxde, gnome, You name it
maybe try another version of ubuntu http://cdimage.ubuntu.com/ubuntu-base/releases/16.04/release/ or do apt-get full-upgrade then configure the packages manually or simple extract them the best option is install other version of ubuntu
Ok thanks. I was trying the latest - eoan - but you're right, perhaps I should get and older version going first. I'll keep this thread updated
Use 16.04 base. Didn't change anything.
I've now tried Eoan, trusty, xenial and bionic. All with the same problem.
I'm using the standard scripts from github to install ubuntu in termux. I've tried with and without "stubs".
damn what are you trying to do ? install package or update things?
Basic install of ubuntu, then install xorg and a gui. Got as far as the first bit. So far I've installed the ubuntu tarball and then tried apt-get install dbus in the ubuntu-fs. really simple.
Into a virgin termux + proot + wget on a factory-reset ASUS pad.
nice, what is the error you get
Cannot open audit interface - aborting. addgroup: `/usr/sbin/groupadd -g 101 messagebus' returned error code 1. Exiting.
configure the systemed package manually. dpkg -i /var/cache/apt/archives/systemed*.deb and post the output if possible
$ ./start-ubuntu.sh groups: cannot find name for group ID 3003 groups: cannot find name for group ID 9997 groups: cannot find name for group ID 50139 root@localhost:\~# dpkg -i /var/cache/apt/archives/dbus_1.12.2-1ubuntu1.1_i386.deb (Reading database ... 5814 files and directories currently installed.) Preparing to unpack .../dbus_1.12.2-1ubuntu1.1_i386.deb ... Unpacking dbus (1.12.2-1ubuntu1.1) over (1.12.2-1ubuntu1.1) ... Setting up dbus (1.12.2-1ubuntu1.1) ... Cannot open audit interface - aborting. adduser: `/usr/sbin/groupadd -g 101 messagebus' returned error code 1. Exiting. dpkg: error processing package dbus (--install): installed dbus package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: dbus root@localhost:\~#
oh yeah of course execute the command with 1001 id or anyother this may fix
/usr/sbin/groupadd -g 1001 messagebus
$root@localhost:\~# groupadd -g 2001 messagebus
Cannot open audit interface - aborting.
$root@localhost:\~# addgroup messagebus
Adding group messagebus
(GID 1000) ...
Cannot open audit interface - aborting.
addgroup: `/usr/sbin/groupadd -g 1000 messagebus' returned error code 1. Exiting.
well that's weird
add this line
messagebus:x:101:
to /etc/group
Yeah. That worked, thanks.
But then I had to do the same thing for the messagebus user in /etc/passwd.
And then, when installing systemd, with groups and users for systemd-journal, systemd-network and systemd-resolve.
Getting a funny "cp: '/etc/resolv.conf' and '/run/systemd/resolv/stub-resolv.conf' are the same file" error that I have to fix by deleting /etc/resolv.conf each time I re-run 'apt-get install systemd' as well.
And so on.
There's something more fundamental going on here, but I don't understand how linux manages users and groups to know what's going on, and browsing the web only reminds me how sysadmins manage users and groups!
Cannot open audit interface - aborting. addgroup: `/usr/sbin/groupadd -g 101 systemd-journal' returned error code 1. Exiting. dpkg: error processing package systemd (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: systemd E: Sub-process /usr/bin/dpkg returned an error code (1) How do I fix this