Neo-Oli / termux-ubuntu

Ubuntu chroot on termux
859 stars 313 forks source link

termux-ubuntu(Cannot open audit interface - aborting.) #35

Open MFDGaming opened 6 years ago

MFDGaming commented 6 years ago

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

MFDGaming commented 6 years ago

????

darkgeek commented 6 years ago

I have the same issue. The workaround can be found here.

linusboyle commented 6 years ago

I have the same issue,I cannot add user or group

Dmole commented 6 years ago

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.

fontypete commented 4 years ago

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

seisdr commented 4 years ago

cd /var/cache/apt/archives dpkg -I *

fontypete commented 4 years ago

Thanks for your quick response.

"dpkg-query: no packages found matching .deb"

(Don't know how to transfer stderr-output-file out of termux to here)

What are you looking for?

seisdr commented 4 years ago

well I don't know but the error seems related to a missing file

fontypete commented 4 years ago

Thanks for trying. But the list literally contains every package you can think of - X11, python3, lxde, gnome, You name it

seisdr commented 4 years ago

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

fontypete commented 4 years ago

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

fontypete commented 4 years ago

Use 16.04 base. Didn't change anything.

fontypete commented 4 years ago

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".

seisdr commented 4 years ago

damn what are you trying to do ? install package or update things?

fontypete commented 4 years ago

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.

seisdr commented 4 years ago

nice, what is the error you get

fontypete commented 4 years ago

Cannot open audit interface - aborting. addgroup: `/usr/sbin/groupadd -g 101 messagebus' returned error code 1. Exiting.

seisdr commented 4 years ago

configure the systemed package manually. dpkg -i /var/cache/apt/archives/systemed*.deb and post the output if possible

fontypete commented 4 years ago

$ ./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:\~#

seisdr commented 4 years ago

oh yeah of course execute the command with 1001 id or anyother this may fix

/usr/sbin/groupadd -g 1001 messagebus

fontypete commented 4 years ago

$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.

seisdr commented 4 years ago

well that's weird add this line messagebus:x:101: to /etc/group

fontypete commented 4 years ago

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!