LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 05-14-2010, 12:17 AM   #1
ashwani.sahni
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
E: Sub-process /usr/bin/dpkg returned an error code (1)


I'm installing tomcat6 on ubuntu 9.10 and getting the following:

sudo apt-get install tomcat6

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
jsvc libcommons-daemon-java
Suggested packages:
tomcat6-docs tomcat6-admin tomcat6-examples
The following NEW packages will be installed:
jsvc libcommons-daemon-java tomcat6
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/88.8kB of archives.
After this operation, 766kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously deselected package libcommons-daemon-java.
(Reading database ... 179106 files and directories currently installed.)
Unpacking libcommons-daemon-java (from .../libcommons-daemon-java_1.0.2~svn20061127-9ubuntu2_all.deb) ...
Selecting previously deselected package jsvc.
Unpacking jsvc (from .../jsvc_1.0.2~svn20061127-9ubuntu2_i386.deb) ...
Selecting previously deselected package tomcat6.
Unpacking tomcat6 (from .../tomcat6_6.0.20-2ubuntu2.1_all.deb) ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libcommons-daemon-java (1.0.2~svn20061127-9ubuntu2) ...

Setting up jsvc (1.0.2~svn20061127-9ubuntu2) ...
Setting up tomcat6 (6.0.20-2ubuntu2.1) ...
chgrp: cannot access `/etc/tomcat6/tomcat-users.xml': No such file or directory
dpkg: error processing tomcat6 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
tomcat6
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please help me to fix this issue.

Last edited by ashwani.sahni; 05-14-2010 at 12:19 AM.
 
Old 05-14-2010, 08:43 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,621

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
chgrp: cannot access `/etc/tomcat6/tomcat-users.xml': No such file or directory is the relevant error.

Try purging tomcat6, apt-get update'ing, then installing.
 
  


Reply

Tags
error, ubuntu


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
Sub-Process /usr/bin/dpkg returned an error code (1) Bookspoppa Debian 39 11-12-2013 01:21 PM
E: Sub-process /usr/bin/dpkg returned an error code (1) Skullnick Linux - Software 2 01-30-2010 11:27 AM
Sub-process /usr/bin/dpkg returned an error code kako13 Debian 2 05-15-2008 06:01 PM
Sub-process /usr/bin/dpkg returned an error code (1) rapattack Debian 10 04-24-2008 11:19 PM
Sub-process /usr/bin/dpkg returned an error code (1) adrian1979 Debian 1 11-12-2006 09:14 PM


All times are GMT -5. The time now is 02:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration