xmail - feisty - deb package install error

Bug #128353 reported by Lani
12
Affects Status Importance Assigned to Milestone
xmail (Ubuntu)
Fix Released
Undecided
Radu Spineanu

Bug Description

I try to install on 2 computers the xmail package, width apt-get, then I try the debian version, but that present same error ...

T30: Kubuntu 7.x
Garfield: Ubuntu server 7.x

1.
-------
http://paste.ubuntu-nl.org/31299/
-------
  root@garfield:~# apt-get install xmail
Csomaglisták olvasása... Kész
Függ?ségi fa építése
Reading state information... Kész
Az alábbi ÚJ csomagok lesznek telepítve:
  xmail
0 frissített, 1 újonnan telepített, 0 eltávolítandó és 13 nem frissített.
Letöltés az archívumokból: 218kB
Kicsomagolás után 815kB lemezterületet használok fel
Letöltés:1 http://hu.archive.ubuntu.com feisty/universe xmail 1.22-5 [218kB]
Letöltve 218kB 0s alatt (888kB/s)
Csomagok el?konfigurálása ...
Új csomag kiválasztása: xmail.
(Adatbázis olvasása ... Most 34915 fájl és könyvtár telepített.)
Kicsomagolás: xmail innen: .../archives/xmail_1.22-5_i386.deb ...
Beállítás: xmail (1.22-5) ...
cat: /etc/xmail/cmd_line: No such file or directory
Starting XMail server: XMail.
I: Adding new domain.
ErrCode = -148
ErrString = Controller response error
ErrInfo = Bad controller login
dpkg: hibás feldolgozás: xmail (--configure):
 post-installation script alfolyamat 3 hibakóddal kilépett
Hibák történtek a feldolgozáskor:
 xmail
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@garfield:~# apt-get -f xmail
E: xmail érvénytelen m?velet
root@garfield:~# apt-get install -f
Csomaglisták olvasása... Kész
Függ?ségi fa építése
Reading state information... Kész
0 frissített, 0 újonnan telepített, 0 eltávolítandó és 13 nem frissített.
1 nincs teljesen telepítve/eltávolítva.
Letöltés az archívumokból: 0B
Kicsomagolás után 0B lemezterületet használok fel
Beállítás: xmail (1.22-5) ...
ln: creating symbolic link `/var/lib/xmail/aliasdomain.tab' to `/etc/xmail/aliasdomain.tab': File exists
ln: creating symbolic link `/var/lib/xmail/aliases.tab' to `/etc/xmail/aliases.tab': File exists
ln: creating symbolic link `/var/lib/xmail/ctrl.ipmap.tab' to `/etc/xmail/ctrl.ipmap.tab': File exists
ln: creating symbolic link `/var/lib/xmail/ctrlaccounts.tab' to `/etc/xmail/ctrlaccounts.tab': File exists
ln: creating symbolic link `/var/lib/xmail/domains.tab' to `/etc/xmail/domains.tab': File exists
ln: creating symbolic link `/var/lib/xmail/extaliases.tab' to `/etc/xmail/extaliases.tab': File exists
ln: creating symbolic link `/var/lib/xmail/filters.in.tab' to `/etc/xmail/filters.in.tab': File exists
ln: creating symbolic link `/var/lib/xmail/filters.out.tab' to `/etc/xmail/filters.out.tab': File exists
ln: creating symbolic link `/var/lib/xmail/filters.post-data.tab' to `/etc/xmail/filters.post-data.tab': File exists
ln: creating symbolic link `/var/lib/xmail/filters.pre-data.tab' to `/etc/xmail/filters.pre-data.tab': File exists
ln: creating symbolic link `/var/lib/xmail/finger.ipmap.tab' to `/etc/xmail/finger.ipmap.tab': File exists
ln: creating symbolic link `/var/lib/xmail/mailusers.tab' to `/etc/xmail/mailusers.tab': File exists
ln: creating symbolic link `/var/lib/xmail/pop3.ipmap.tab' to `/etc/xmail/pop3.ipmap.tab': File exists
ln: creating symbolic link `/var/lib/xmail/pop3links.tab' to `/etc/xmail/pop3links.tab': File exists
ln: creating symbolic link `/var/lib/xmail/server.tab' to `/etc/xmail/server.tab': File exists
ln: creating symbolic link `/var/lib/xmail/smtp.ipmap.tab' to `/etc/xmail/smtp.ipmap.tab': File exists
ln: creating symbolic link `/var/lib/xmail/smtp.ipprop.tab' to `/etc/xmail/smtp.ipprop.tab': File exists
ln: creating symbolic link `/var/lib/xmail/smtpauth.tab' to `/etc/xmail/smtpauth.tab': File exists
ln: creating symbolic link `/var/lib/xmail/smtpextauth.tab' to `/etc/xmail/smtpextauth.tab': File exists
ln: creating symbolic link `/var/lib/xmail/smtpfwd.tab' to `/etc/xmail/smtpfwd.tab': File exists
ln: creating symbolic link `/var/lib/xmail/smtpgw.tab' to `/etc/xmail/smtpgw.tab': File exists
ln: creating symbolic link `/var/lib/xmail/smtprelay.tab' to `/etc/xmail/smtprelay.tab': File exists
ln: creating symbolic link `/var/lib/xmail/spam-address.tab' to `/etc/xmail/spam-address.tab': File exists
ln: creating symbolic link `/var/lib/xmail/spammers.tab' to `/etc/xmail/spammers.tab': File exists
ln: creating symbolic link `/var/lib/xmail/userdef.tab' to `/etc/xmail/userdef.tab': File exists
dpkg: hibás feldolgozás: xmail (--configure):
 post-installation script alfolyamat 1 hibakóddal kilépett
Hibák történtek a feldolgozáskor:
 xmail
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@garfield:~#

2.
---------------
http://paste.ubuntu-nl.org/31308/
---------------
  root@garfield:~/install# wget http://http.us.debian.org/debian/pool/main/x/xmail/xmail_1.22-5_i386.deb
--22:54:54-- http://http.us.debian.org/debian/pool/main/x/xmail/xmail_1.22-5_i386.deb
           => `xmail_1.22-5_i386.deb'
Resolving http.us.debian.org... 204.152.191.7, 128.101.240.212, 35.9.37.225, ...
Connecting to http.us.debian.org|204.152.191.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 217.838 (213K) [text/plain]

100%[======================================================>] 217.838 143.35K/s

22:54:56 (142.85 KB/s) - `xmail_1.22-5_i386.deb' saved [217838/217838]

root@garfield:~/install# dpkg -i xmail_1.22-5_i386.deb
Új csomag kiválasztása: xmail.
(Adatbázis olvasása ... Most 35854 fájl és könyvtár telepített.)
Kicsomagolás: xmail innen: xmail_1.22-5_i386.deb ...
Beállítás: xmail (1.22-5) ...
cat: /etc/xmail/cmd_line: No such file or directory
Starting XMail server: XMail.
I: Adding new domain.
ErrCode = -148
ErrString = Controller response error
ErrInfo = Bad controller login
dpkg: hibás feldolgozás: xmail (--install):
 post-installation script alfolyamat 3 hibakóddal kilépett
Hibák történtek a feldolgozáskor:
 xmail
root@garfield:~/install#
-----------------------------------

gep 1 (7.x kubuntu):

rm /etc/xmail/ (mc-ben torolve F8-al ... biztos, ami biztos)

root@t30:/mnt/work/home2/lani# apt-get install -f
Csomaglisták olvasása... Kész
Függ?ségi fa építése
Állapotinformációk olvasása... Kész
Az alábbi csomagok lettek automatikusan telepítve és már nem szükségesek:
  linux-headers-2.6.20-15-generic linux-headers-2.6.20-15
Az "apt-get autoremove" segítségével távolíthaja el ezeket.
0 frissített, 0 újonnan telepített, 0 eltávolítandó és 64 nem frissített.
1 nincs teljesen telepítve/eltávolítva.
Letöltés az archívumokból: 0B
Kicsomagolás után 0B lemezterületet használok fel
Beállítás: xmail (1.22-5) ...
cp: a megadott cél ("/etc/xmail") nem könyvtár
dpkg: hibás feldolgozás: xmail (--configure):
 post-installation script alfolyamat 1 hibakóddal kilépett
Hibák történtek a feldolgozáskor:
 xmail
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@t30:/mnt/work/home2/lani#

gep2 (7.x ubuntu szerver):

rm /etc/xmail/ (mc-ben torolve F8-al ... biztos, ami biztos)

root@garfield:~# apt-get install -f
Csomaglisták olvasása... Kész
Függ?ségi fa építése
Reading state information... Kész
0 frissített, 0 újonnan telepített, 0 eltávolítandó és 13 nem frissített.
1 nincs teljesen telepítve/eltávolítva.
Letöltés az archívumokból: 0B
Kicsomagolás után 0B lemezterületet használok fel
Beállítás: xmail (1.22-5) ...
cp: target `/etc/xmail' is not a directory
dpkg: hibás feldolgozás: xmail (--configure):
 post-installation script alfolyamat 1 hibakóddal kilépett
Hibák történtek a feldolgozáskor:
 xmail
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@garfield:~#

Revision history for this message
Marco Riccardi (tau-zero) wrote :

Try the following (it worked for me: I had a working flawless Xmail server).

After that the installation failed, open the file: /var/lib/dpkg/info/xmail.postinst

 you need to find this lines:

   if [ -z "$2" ]; then
 #we are installing for the first time
        cp /usr/share/doc/xmail/sample/*.tab /etc/xmail
        cp /usr/share/doc/xmail/sample/dnsroots /etc/xmail
        #make links to xmail config files
        ln -s /etc/xmail/*.tab /var/lib/xmail/
        ln -s /etc/xmail/dnsroots /var/lib/xmail
        chmod 711 /var/lib/xmail

you need to edit 4 lines starting with "cp ..." and "ln ..." as follow:

   if [ -z "$2" ]; then
 #we are installing for the first time
        cp -u /usr/share/doc/xmail/sample/*.tab /etc/xmail
        cp -u /usr/share/doc/xmail/sample/dnsroots /etc/xmail
        #make links to xmail config files
        ln -s -f /etc/xmail/*.tab /var/lib/xmail/
        ln -s -f /etc/xmail/dnsroots /var/lib/xmail
        chmod 711 /var/lib/xmail

In order to the install process the new xmail.postinst, I installed (and removed) a dummy application

NOTICE:
a minor bug is in the /var/lib/xmail/message.id file (it must contains
a pure number, so you need to change a line in the file /etc/init.d/xmail):
it must be changed BEFORE xmail starts.

find this line:
 echo -e "1\r\n\0" > /var/lib/xmail/message.id

and change it in:
 echo "1" > /var/lib/xmail/message.id

alternatively you may change manually the file /var/lib/xmail/message.id writing a unique line containing the number 1

Revision history for this message
Peter Laudy (ubuntu-zestien3) wrote :

I had the same problem and Marco's suggestion just missed one thing to solve it.
In the /var/lib/dpkg/info/xmail.postinst file, there is another use of the echo command which doesn't work:

echo -e "\"debian\"\t\"0100070c040b\"" >> /etc/xmail/ctrlaccounts.tab

This command should create a user debian with password debian, but fails. Therefore, the CtrlClnt command cannot configure xmail.
I commented out the line and wrote the info to the /etc/xmail/ctrlaccounts.tab by hand.

This gets rid of the error message:

I: Adding new domain.
ErrCode = -148
ErrString = Controller response error
ErrInfo = Bad controller login

The installation of xmail is now marked succesfull.

Revision history for this message
Craig Jones (craig-lylejones) wrote :

I'm having the same problem, and have altered the files as mentioned above.

I don't understand "In order to the install process the new xmail.postinst, I installed (and removed) a dummy application" however. Can anyone point me in the right direction?

Thanks!

Revision history for this message
Marco Riccardi (tau-zero) wrote : Re: [Bug 128353] Re: xmail - feisty - deb package install error

Craig Jones ha scritto:
> I'm having the same problem, and have altered the files as mentioned
> above.
>
> I don't understand "In order to the install process the new
> xmail.postinst, I installed (and removed) a dummy application" however.
> Can anyone point me in the right direction?
>
> Thanks!
>
>
uhmm its a lot of time ago.... I believe to remember that I installed a
dummy application (I use usually use a chess game) in order to permit to
Ubuntu to re-process also the Xmail installation (this time with the
correct setup) and therefore to remove to its queue. You may remove the
dummy application later.

I dont rember if I done that with Xmail server stopped or not... (I'm sorry)

Let me know...

Bye!

Revision history for this message
vdnick (vdnick) wrote :

Hi,

I had the same problem with Ubuntu 8.04, xmail-1.22 and xmail-1.25 deb packages.
It was weird...

I solved the problem by installing xmail from root account, not with sudo!

Cheers!

Revision history for this message
Radu Spineanu (radu-debian) wrote :

fixed in Debian 1.25-3

Changed in xmail:
assignee: nobody → radu-debian
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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