LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I think I broke mon, is it possible to install correctly? (https://www.linuxquestions.org/questions/linux-newbie-8/i-think-i-broke-mon-is-it-possible-to-install-correctly-4175573047/)

sgtrobo 02-23-2016 04:27 PM

I think I broke mon, is it possible to install correctly?
 
I'm using Ubuntu 12.04, can't move to 14.04 or anything because that's what the IT guys installed on the system

anytime I try to do a sudo apt-get install <package>, somewhere along the line I'll get the following messages:

Code:

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.

and then

Code:

Setting up mon (1.2.0-4) ...
 * The user mon, required to run mon does not exist.
invoke-rc.d: initscript mon, action "start" failed.
dpkg: error processing mon (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 mon
E: Sub-process /usr/bin/dpkg returned an error code (1)

I've tried the following at one point or another in my last 2 days of searching:

sudo apt-get autoclean
sudo apt-get remove --purge mon
sudo dpkg --configure mon
sudo apt-get install -f

as well as apt-get install. No matter what, it shows me as having that '1 not fully installed or removed' and then that stuff at the bottom regarding "E: Sub-process"

I can do a sudo apt-get update without issue or error message, as well as sudo apt-get check (nothing really happens with that). sudo apt-get upgrade shows me the above message

I found this:
Code:

sudo apt-cache policy mon
and got this output:
Code:

mon:
  Installed: 1.2.0-4
  Candidate: 1.2.0-4
  Version table:
 *** 1.2.0-4 0
        500 http://10.185.137.7/ubuntu/desktop/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status


I did this:
Code:

sudo dpkg -l | grep "mon"
and got this

Code:

pF  mon                                        1.2.0-4                              monitor hosts/services/whatever and alert about problems
ii  mon-client                                  1.2.0-1                              modules for interfacing with the mon package

(along with about 5,000 "common" and "daemon")

so it would seem that mon is actually installed?

i found out about checkinstall,
Code:

sudo aptitude install checkinstall

Code:

Errors were encountered while processing:
 mon
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:


so basically, it seems like I cannot install or remove anything, and I'm not sure what to do about this. I cannot point to anything that could've caused this in the first place. Obviously I did something, but I darn sure don't know what it is.

Any help greatly appreciated. Sorry if I didn't provide enough info, I'm obviously a newbie and I'm trying to read the man page for mon but it is completely overwhelming right now. Thanks for any help or pointers or...something.

aus9 02-23-2016 05:50 PM

Hi

Welcome to LQ

Quote:

I'm using Ubuntu 12.04, can't move to 14.04 or anything because that's what the IT guys installed on the system
Can you explain the following above?

1) Do you own this computer or is it a company computer and its their policy you must remain on 12.04?
b) Did they install it but you bought it as a home computer?

2) If IT installed the system then why haven't you reported your problems to IT?

jefro 02-23-2016 07:06 PM

Some install(er) issue. ???


"Setting up mon (1.2.0-4) ...
* The user mon, required to run mon does not exist."

Might have to get sources and build.


Humm. ubuntu site seem to have an issue.

Ztcoracat 02-23-2016 07:27 PM

Quote:

so it would seem that mon is actually installed?
If so this will confirm that it is:-

Code:

dpkg -L mon

sgtrobo 02-23-2016 11:52 PM

thank you for the assistance. My responses inline below.

Quote:

Originally Posted by aus9 (Post 5505105)

1) Do you own this computer or is it a company computer and its their policy you must remain on 12.04?
b) Did they install it but you bought it as a home computer?

2) If IT installed the system then why haven't you reported your problems to IT?

answers:
1) Answer: it's a company computer
2) Answer: I would prefer to reduce downtime and figure it out myself (err....with some help. :) )

Quote:

Originally Posted by jefro (Post 5505135)
"Setting up mon (1.2.0-4) ...
* The user mon, required to run mon does not exist."

Might have to get sources and build.

Humm. ubuntu site seem to have an issue.

so build mon from source? I can figure that out, I'll give that one a try

Quote:

Originally Posted by Ztcoracat (Post 5505146)
If so this will confirm that it is:-

Code:

dpkg -L mon

almost positive I did that yesterday, but forgot to report. When I get to office in the morning I'll check.

thanks again everyone!

sgtrobo 02-24-2016 09:08 AM

Quote:

Originally Posted by Ztcoracat (Post 5505146)
If so this will confirm that it is:-

Code:

dpkg -L mon

yeah, definitely. I got a ton of filepaths, /etc, /etc/mon, /etc/mon/auth.cf, /etc/mon/mon.cf, etc

so there's a lot of files presently 'owned' by mon

Emerson 02-24-2016 01:02 PM

Quote:

The user mon, required to run mon does not exist.
Quote:

so there's a lot of files presently 'owned' by mon
There is a contradiction, user mon does exist. Who owns mon executable?

sgtrobo 02-24-2016 03:25 PM

Quote:

Originally Posted by Emerson (Post 5505553)
There is a contradiction, user mon does exist. Who owns mon executable?

assuming the executable is the one in /usr/sbin, then root owns it. It's showing x for each permission, so I think that's the proper one

Ztcoracat 02-24-2016 07:31 PM

Quote:

so build mon from source? I can figure that out, I'll give that one a try
The tar ball that you download should come with a README or an INSTALL file to tell you how to install it.

http://www.howtogeek.com/105413/how-...rce-on-ubuntu/
http://www.webmonkey.com/2010/02/com...m_source_code/

jefro 02-25-2016 09:16 PM

Before you attempt to build from source use all the other suggestions first.


I still think this is the place to start.

""Setting up mon (1.2.0-4) ...
* The user mon, required to run mon does not exist."

sgtrobo 02-25-2016 09:17 PM

Quote:

Originally Posted by jefro (Post 5506294)
Before you attempt to build from source use all the other suggestions first.


I still think this is the place to start.

""Setting up mon (1.2.0-4) ...
* The user mon, required to run mon does not exist."

right, but isn't the user mon just a user created by the mon daemon specifically to use mon? regardless, it's not in /etc/passwd

jefro 02-25-2016 09:58 PM

dpkg: error processing mon (--configure):
subprocess installed post-installation script returned error exit status 1

I seems to be saying to me that dpkg can't correctly use the configure script for some reason. What that is I don't know.

Ztcoracat 02-26-2016 07:18 PM

Quote:

Originally Posted by jefro (Post 5506310)
dpkg: error processing mon (--configure):
subprocess installed post-installation script returned error exit status 1

I seems to be saying to me that dpkg can't correctly use the configure script for some reason. What that is I don't know.

The configure script may have an error in it.
It's happened to me:-

Maybe researching the error message will lead to a solution-
https://www.google.com/search?q=weat...+exit+status+1


All times are GMT -5. The time now is 07:26 PM.