package mantis fails to be correctly installed or even then removed

Bug #103700 reported by Serge Matveenko
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mantis (Debian)
Fix Released
Unknown
mantis (Ubuntu)
Fix Released
Medium
Adrien Cunin

Bug Description

Binary package hint: mantis

:~$ sudo aptitude reinstall mantis
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be REINSTALLED:
  mantis
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Setting up mantis (1.0.6+dfsg-3) ...
cat: /etc/mailname: No such file or directory
dpkg: error processing mantis (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 mantis
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

now it is shown at synaptic as installed, but cannot be removed with the same massage as above

Revision history for this message
Serge Matveenko (lig) wrote :

ubuntu feisty

Revision history for this message
Ralph Janke (txwikinger) wrote :

Can confirm this problem when installing mantis

Changed in mantis:
assignee: nobody → rjanke
status: Unconfirmed → Confirmed
Revision history for this message
Ralph Janke (txwikinger) wrote :

The problem occurs because the file /etc/mailname is missing which on debian system usually contains the mailaddress of the computer

Revision history for this message
Serge Matveenko (lig) wrote :

after adding /etc/mailname with my domain name:

(on the step with "unknown database" it was created manualy and the we got error with "unexpected operator")

~$ sudo aptitude install mantis
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be automatically installed:
  dbconfig-common
The following NEW packages will be installed:
  dbconfig-common mantis
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1674kB of archives. After unpacking 7725kB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Preconfiguring packages ...
Selecting previously deselected package dbconfig-common.
(Reading database ... 146300 files and directories currently installed.)
Unpacking dbconfig-common (from .../dbconfig-common_1.8.30_all.deb) ...
Setting up dbconfig-common (1.8.30) ...

Selecting previously deselected package mantis.
(Reading database ... 146514 files and directories currently installed.)
Unpacking mantis (from .../mantis_1.0.6+dfsg-3_all.deb) ...
Setting up mantis (1.0.6+dfsg-3) ...
dbconfig-common: writing config to /etc/dbconfig-common/mantis.conf
Replacing config file /etc/dbconfig-common/mantis.conf with new version
-ne granting access to database mantis for mantis@localhost:
-e failed.
error encountered creating user:
mysql said: ERROR 1049 (42000): Unknown database 'mantis'
dbconfig-common: mantis configure: trying again.
dbconfig-common: writing config to /etc/dbconfig-common/mantis.conf
-ne granting access to database mantis for mantis@localhost:
-e success.
-ne verifying access for mantis@localhost:
-e success.
-ne creating database mantis:
-e already exists.
-ne populating database via sql...
-e done.
dbconfig-common: flushing administrative password
[: 69: [: unexpected operator

Revision history for this message
Ralph Janke (txwikinger) wrote :

I can confirm this too

Ralph Janke (txwikinger)
Changed in mantis:
assignee: rjanke → nobody
Revision history for this message
Adrien Cunin (adri2000) wrote :

It seems to be fixed in Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403580
I have requested a sync.

Changed in mantis:
assignee: nobody → adri2000
importance: Undecided → Medium
status: Confirmed → Fix Committed
Changed in mantis:
status: Unknown → Fix Released
Revision history for this message
Serge Matveenko (lig) wrote : not fixed in mantis_1.0.6+dfsg-4.1

dbconfig-common: writing config to /etc/dbconfig-common/mantis.conf
-ne granting access to database mantis for mantis@localhost:
-e success.
-ne verifying access for mantis@localhost:
-e success.
-ne creating database mantis:
-e already exists.
-ne populating database via sql...
-e done.
dbconfig-common: flushing administrative password
[: 69: [: unexpected operator

Revision history for this message
Adrien Cunin (adri2000) wrote :

Serge: it's a different bug, this one is fixed.

Changed in mantis:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.