LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-23-2016, 05:27 PM   #1
sgtrobo
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Rep: Reputation: Disabled
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.

Last edited by sgtrobo; 02-23-2016 at 05:35 PM.
 
Old 02-23-2016, 06:50 PM   #2
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,298

Rep: Reputation: Disabled
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?
 
Old 02-23-2016, 08:06 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,168

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
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.

Last edited by jefro; 02-23-2016 at 09:15 PM.
 
Old 02-23-2016, 08:27 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,945
Blog Entries: 12

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

Code:
dpkg -L mon
 
Old 02-24-2016, 12:52 AM   #5
sgtrobo
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
thank you for the assistance. My responses inline below.

Quote:
Originally Posted by aus9 View Post

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 View Post
"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 View Post
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!

Last edited by sgtrobo; 02-24-2016 at 07:40 AM.
 
Old 02-24-2016, 10:08 AM   #6
sgtrobo
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
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
 
Old 02-24-2016, 02:02 PM   #7
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,153

Rep: Reputation: Disabled
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?
 
Old 02-24-2016, 04:25 PM   #8
sgtrobo
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
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
 
Old 02-24-2016, 08:31 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,945
Blog Entries: 12

Rep: Reputation: Disabled
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/
 
Old 02-25-2016, 10:16 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,168

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
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."
 
Old 02-25-2016, 10:17 PM   #11
sgtrobo
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
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
 
Old 02-25-2016, 10:58 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,168

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
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.
 
Old 02-26-2016, 08:18 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,945
Blog Entries: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
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

Last edited by Ztcoracat; 02-26-2016 at 08:22 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't make Xdmx run correctly under Fedora20 with Cinnamon (to use laptop as 2nd mon) jnouzeilles Linux - Software 0 12-07-2014 09:44 PM
[SOLVED] Wicd won't install correctly/run correctly (64-bit Slackware 13) bgraybr Slackware 3 04-01-2010 07:57 PM
New install and I broke it already knottshawk Ubuntu 5 05-08-2009 03:56 PM
DHCPCD broke, how to install from Slackware install disk? JockVSJock Slackware 8 03-20-2006 11:04 PM
keep getting dropped into mon> prompt during install +daily Linux - Newbie 1 01-06-2005 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration