Dpkg Syntax Error
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About
Syntax Error: Unknown User In Statoverride File
Us Learn more about Stack Overflow the company Business Learn more about hiring developers dpkg statoverride or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question
Syntax Error: Unknown Group 'mlocate' In Statoverride File
and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted syntax error: unknown user 'minidlna' in statoverride file up and rise to the top How do I remove a user from the dpkg-statoverride file? up vote 1 down vote favorite Tried to install a package after deleting some servers I no longer needed, and removing the deleted software package's users and groups. Went to fetch and install a new package, and got the following error. user@localhost~$ sudo apt-get install any-package ... package installation output omitted for unknown user 'elasticsearch' in statoverride file brevity ... dpkg: unrecoverable fatal error, aborting: syntax error: unknown user 'puppet' in statoverride file E: Sub-process /usr/bin/dpkg returned an error code (2) So /usr/bin/dpkg-statoverride has an option to remove a path, but the binary throws the same error when I try to run it out side of the whole apt-get install context. So then I just added the user puppet, and i can download packages again, but I'm trying to remove any extraneous elements from my dev system, so as far as I'm concerned, this isn't a solution just because it works. As far as I can tell, the statoverride tells the package manager to install certain stuff to a certain path, and messes with the setuid flag, so potentially, it could be opening up a bunch of security holes by installing programs co-owned by an unused user and group. Is there a reason dpkg-statoverride isn't updated with the rest of the system when a user is removed? And is there a way to circumvent this so that I don't have to :adduser -> install -> deluser: everytime I want to install a package? 14.04 apt dpkg puppet share|improve this question asked Aug 2 '14 at 21:37 knotech 31139 add a c
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site
Dpkg: Unrecoverable Fatal Error, Aborting:
About Us Learn more about Stack Overflow the company Business Learn more about geoclue user hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is
Syntax Error: Unknown User 'hplip' In Statoverride File
a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best http://askubuntu.com/questions/506043/how-do-i-remove-a-user-from-the-dpkg-statoverride-file answers are voted up and rise to the top syntax error: unknown user 'munin' in statoverride file up vote 1 down vote favorite Server running Ubuntu 12.04 lts I installed munin the other day on a server. I decided later to remove it with apt-get. I noticed that not everything was removed from the installation so manually removed the munin web directory and also removed the http://serverfault.com/questions/548996/syntax-error-unknown-user-munin-in-statoverride-file munin user-name and group from the sever. However I have just now tried to run apt-get upgrade which is now returning an error: dpkg: unrecoverable fatal error, aborting: syntax error: unknown user 'munin' in statoverride file E: Sub-process /usr/bin/dpkg returned an error code (2) I am now out of my depth. What does this mean? Google results have not really been helpful. Can anyone help? Thanks, John munin dpkg share|improve this question asked Oct 27 '13 at 18:26 John 2571616 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote accepted Take a look in /var/lib/dpkg/statoverride if there is any line root munin 750 /etc/munin/plugin-conf.d Try: dpkg-statoverride --remove /etc/munin/plugin-conf.d share|improve this answer answered Oct 27 '13 at 19:21 Alex 923 There are quite a few: munin munin 755 /var/lib/munin root mlocate 2755 /usr/bin/mlocate root munin 750 /etc/munin/plugin-conf.d munin munin 755 /var/cache/munin/www root ssl-cert 710 /etc/ssl/private munin adm 750 /var/log/munin root crontab 2755 /usr/bin/crontab Do i just remove all the munin related ones i am guessing? –John Oct 27 '13 at 19:57 Remove only the munin related ones –Alex Oct 27 '13 at 20:05 Thanks that work
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more http://unix.stackexchange.com/questions/249712/dpkg-binaries-broken about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The syntax error best answers are voted up and rise to the top dpkg binaries broken? up vote 1 down vote favorite I bought a new Raspberry Pi 2 with ARM processor architecture. Tonight I did an update via sudo apt-get update && sudo apt-get upgrade. I noticed, that it did update the dpkg package itself. Now I wanted to install apache2 on the Raspbian system, but the dpkg binaries seem to be broken: in statoverride file ... /usr/bin/dpkg-deb: 1: /usr/bin/dpkg-deb: Syntax error: word unexpected (expecting ")") dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/apache2-data_2.4.10-10+deb8u3_all.deb (--unpack): Unterprozess dpkg-deb --control gab den Fehlerwert 2 zurück ... For all none german speakers "Fehler beim Bearbeiten des Archivs" means "An error occurred while processing the archive" and means "Unterprozess dpkg-deb --control gab den Fehlerwert 2 zurück" the "Subprocess dpkg-deb --control returned error code 2" This happens to all packages I'm trying to install. What can I do now? dpkg share|improve this question edited Dec 16 '15 at 23:22 Gilles 370k686731123 asked Dec 16 '15 at 12:35 chris.ribal 1082 It's a raspberry pi 2 running Raspbian (Debian) Jessy –chris.ribal Dec 16 '15 at 12:44 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted To restore the binaries without using dpkg, here's the "simple" approach, assuming your Raspberry Pi has binutils installed: retrieve the dpkg package (the .deb file); it's probably still in /var/cache/apt/archives, otherwise you'll need to download it (from the pool; pick whichever version matches what you have installed) extract the data.tar.gz file from the archive, somewhere safe: ar x dpkg_....deb data.tar.gz extract dpkg-deb: tar xf data.tar.gz ./usr/bin/dpkg-deb move dpkg-deb into place: sudo mv usr/bin/dpkg-deb /usr/bin If you don't have binutils installed, you'll need