Postfix reinstall

Fórumok

Sziasztok,
Kis segítségre lenne szükségem.
Az előzmények kevéssé érdekesek, a lényeg, hogy a squeeze-alapú levelezőszerverem évek óta megy hiba nélkül (postfix-dovecot), de egy csomagfrissítés során dependenciákba ütköztem, melynek során eltávolításra került többek között a postfix is.
A sources.list file-on nem változtattam, jelenleg az apt-get update/upgrade/dist-upgrade probléma nélkül lefut.
Viszont szeretném visszarakni a postfix-ot, de arra azt mondja, hogy

postfix : Depends: libsasl2-2 but it is not going to be installed

apt-get install libsasl2-2 -re azt mondja:

libsasl2-2 is already the newest version.

aptitude install postfixre ezt kapom:
The following packages have unmet dependencies:
libsasl2-2: Breaks: postfix (<= 2.8.3-1) but 2.7.1-1+squeeze1 is to be installed.

Tehát mintha nem megfelelő Postfix verziót akarna feltenni?

Kicsit meg vagyok lőve, hogy most akkor hogyan tovább...
Esetleg van valakinek tippje?

Előre is köszönöm!

üdv:
optimista

Hozzászólások

Ezekre mit kapsz?

dpkg -p libsasl2-2
dpkg -p postfix
cat /etc/apt/sources.list

Először is köszönöm, hogy foglalkozol a problémámmal!
Küldöm a parancsok kimeneteit.
Köszi és üdv,
optimista

dpkg -p libsasl2-2:

Package: libsasl2-2
Priority: standard
Section: libs
Installed-Size: 227
Maintainer: Debian Cyrus SASL Team

Architecture: i386
Multi-Arch: same
Source: cyrus-sasl2
Version: 2.1.25.dfsg1-3
Replaces: libsasl2
Depends: libc6 (>= 2.4), libdb5.1
Pre-Depends: multiarch-support
Recommends: libsasl2-modules (= 2.1.25.dfsg1-3)
Breaks: postfix (<= 2.8.3-1)
Size: 119406
Description: Cyrus SASL - authentication abstraction library
This is the Cyrus SASL API implementation, version 2.1.
.
SASL is the Simple Authentication and Security Layer, a method for
adding authentication support to connection-based protocols. To use
SASL, a protocol includes a command for identifying and
authenticating a user to a server and for optionally negotiating
protection of subsequent protocol interactions. If its use is
negotiated, a security layer is inserted between the protocol and the
connection. See RFC 2222 for more information.
.
Any of: ANONYMOUS, CRAM-MD5, DIGEST-MD5, GSSAPI (MIT or Heimdal
Kerberos 5), NTLM, OTP, PLAIN, or LOGIN can be used. If you intend to
use this package on a server that provides SASL authentication, then
you must install some of the libsasl2-modules* packages.
Homepage: http://www.cyrusimap.org/

---------------------------------------------------------------------------------
dpkg -p postfix:

Package: postfix
Priority: extra
Section: mail
Installed-Size: 3196
Maintainer: LaMont Jones
Architecture: i386
Version: 2.7.1-1+squeeze1
Replaces: mail-transport-agent, postfix-tls
Provides: mail-transport-agent, postfix-tls
Depends: libc6 (>= 2.11), libdb4.8, libsasl2-2, libssl0.9.8 (>= 0.9.8m-1), debconf (>= 0.5) | debconf-2.0, netbase, adduser (>= 3.48), dpkg (>= 1.8.3), lsb-base (>= 3.0-6), ssl-cert
Recommends: python
Suggests: procmail, postfix-mysql, postfix-pgsql, postfix-ldap, postfix-pcre, sasl2-bin, libsasl2-modules, resolvconf, postfix-cdb, mail-reader, ufw
Conflicts: libnss-db (<< 2.2-3), mail-transport-agent, postfix-tls, smail
Size: 1328276
Description: High-performance mail transport agent
Postfix is Wietse Venema's mail transport agent that started life as an
alternative to the widely-used Sendmail program. Postfix attempts to
be fast, easy to administer, and secure, while at the same time being
sendmail compatible enough to not upset existing users. Thus, the outside
has a sendmail-ish flavor, but the inside is completely different.

-------------------------------------------------------------------------------------------------------

cat /etc/apt/sources.list:

deb http://ftp.hu.debian.org/debian/ squeeze main
deb-src http://ftp.hu.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
deb http://ftp.hu.debian.org/debian/ squeeze-updates main
deb-src http://ftp.hu.debian.org/debian/ squeeze-updates main


Package: libsasl2-2
...
Version: 2.1.25.dfsg1-3

2.1.25 nem volt a Squeeze-ben, a Wheezy az első stabil, ahol ez a verzió megjelent.

A /etc/apt/sources.list.d alatt sincs semmi olyan, ami testingre, sidre vagy wheezyre hivatkozik? Soha nem is volt? Az install logban mit látsz?

 # zgrep libsasl2-2 /var/log/dpkg.log*

Ez a szerver még etch-ként lett telepítve anno, és régebben valóban testingre állítottuk, és úgy is ment elég sokáig, míg aztán a testing már wheezy lett akkor valamiért vissza kellett írni squeeze-re, már nem emlékszem, miért. Azóta már kb. egy év telhetett el, és frissítettük rendszeresen, sosem volt probléma.

Megnéztem mi lenne, ha testingre váltanám, de várakozásaimnak megfelelően vagy 500 csomagot szeretne frissíteni.
Ez még a libsasl2-2 eltávolításánál is ijesztőbb, mondjuk csináltam már egy ilyet, de nem voltam közben teljesen nyugodt...

/var/log/dpkg.log.10.gz:2011-07-27 09:51:40 upgrade libsasl2-2 2.1.23.dfsg1-8 2.1.24~rc1.dfsg1+cvs2011-05-23-4
/var/log/dpkg.log.10.gz:2011-07-27 09:51:40 status half-configured libsasl2-2 2.1.23.dfsg1-8
/var/log/dpkg.log.10.gz:2011-07-27 09:51:40 status unpacked libsasl2-2 2.1.23.dfsg1-8
/var/log/dpkg.log.10.gz:2011-07-27 09:51:40 status half-installed libsasl2-2 2.1.23.dfsg1-8
/var/log/dpkg.log.10.gz:2011-07-27 09:51:40 status half-installed libsasl2-2 2.1.23.dfsg1-8
/var/log/dpkg.log.10.gz:2011-07-27 09:51:40 status unpacked libsasl2-2 2.1.24~rc1.dfsg1+cvs2011-05-23-4
/var/log/dpkg.log.10.gz:2011-07-27 09:51:40 status unpacked libsasl2-2 2.1.24~rc1.dfsg1+cvs2011-05-23-4
/var/log/dpkg.log.10.gz:2011-07-27 09:55:54 configure libsasl2-2 2.1.24~rc1.dfsg1+cvs2011-05-23-4
/var/log/dpkg.log.10.gz:2011-07-27 09:55:54 status unpacked libsasl2-2 2.1.24~rc1.dfsg1+cvs2011-05-23-4
/var/log/dpkg.log.10.gz:2011-07-27 09:55:54 status half-configured libsasl2-2 2.1.24~rc1.dfsg1+cvs2011-05-23-4
/var/log/dpkg.log.10.gz:2011-07-27 09:55:54 status installed libsasl2-2 2.1.24~rc1.dfsg1+cvs2011-05-23-4
/var/log/dpkg.log.12.gz:2011-04-20 11:40:37 upgrade libsasl2-2 2.1.23.dfsg1-7 2.1.23.dfsg1-8
/var/log/dpkg.log.12.gz:2011-04-20 11:40:37 status half-configured libsasl2-2 2.1.23.dfsg1-7
/var/log/dpkg.log.12.gz:2011-04-20 11:40:37 status unpacked libsasl2-2 2.1.23.dfsg1-7
/var/log/dpkg.log.12.gz:2011-04-20 11:40:37 status half-installed libsasl2-2 2.1.23.dfsg1-7
/var/log/dpkg.log.12.gz:2011-04-20 11:40:37 status half-installed libsasl2-2 2.1.23.dfsg1-7
/var/log/dpkg.log.12.gz:2011-04-20 11:40:37 status unpacked libsasl2-2 2.1.23.dfsg1-8
/var/log/dpkg.log.12.gz:2011-04-20 11:40:37 status unpacked libsasl2-2 2.1.23.dfsg1-8
/var/log/dpkg.log.12.gz:2011-04-20 11:43:44 configure libsasl2-2 2.1.23.dfsg1-8
/var/log/dpkg.log.12.gz:2011-04-20 11:43:44 status unpacked libsasl2-2 2.1.23.dfsg1-8
/var/log/dpkg.log.12.gz:2011-04-20 11:43:44 status half-configured libsasl2-2 2.1.23.dfsg1-8
/var/log/dpkg.log.12.gz:2011-04-20 11:43:44 status installed libsasl2-2 2.1.23.dfsg1-8
/var/log/dpkg.log.4.gz:2012-02-03 10:47:03 upgrade libsasl2-2 2.1.25.dfsg1-2 2.1.25.dfsg1-3
/var/log/dpkg.log.4.gz:2012-02-03 10:47:03 status half-configured libsasl2-2 2.1.25.dfsg1-2
/var/log/dpkg.log.4.gz:2012-02-03 10:47:03 status unpacked libsasl2-2 2.1.25.dfsg1-2
/var/log/dpkg.log.4.gz:2012-02-03 10:47:03 status half-installed libsasl2-2 2.1.25.dfsg1-2
/var/log/dpkg.log.4.gz:2012-02-03 10:47:03 status half-installed libsasl2-2 2.1.25.dfsg1-2
/var/log/dpkg.log.4.gz:2012-02-03 10:47:03 status unpacked libsasl2-2 2.1.25.dfsg1-3
/var/log/dpkg.log.4.gz:2012-02-03 10:47:03 status unpacked libsasl2-2 2.1.25.dfsg1-3
/var/log/dpkg.log.4.gz:2012-02-03 10:49:15 configure libsasl2-2 2.1.25.dfsg1-3
/var/log/dpkg.log.4.gz:2012-02-03 10:49:15 status unpacked libsasl2-2 2.1.25.dfsg1-3
/var/log/dpkg.log.4.gz:2012-02-03 10:49:15 status half-configured libsasl2-2 2.1.25.dfsg1-3
/var/log/dpkg.log.4.gz:2012-02-03 10:49:15 status installed libsasl2-2 2.1.25.dfsg1-3
/var/log/dpkg.log.5.gz:2012-01-03 10:30:19 upgrade libsasl2-2 2.1.24~rc1.dfsg1+cvs2011-05-23-4 2.1.25.dfsg1-2
/var/log/dpkg.log.5.gz:2012-01-03 10:30:19 status half-configured libsasl2-2 2.1.24~rc1.dfsg1+cvs2011-05-23-4
/var/log/dpkg.log.5.gz:2012-01-03 10:30:19 status unpacked libsasl2-2 2.1.24~rc1.dfsg1+cvs2011-05-23-4
/var/log/dpkg.log.5.gz:2012-01-03 10:30:19 status half-installed libsasl2-2 2.1.24~rc1.dfsg1+cvs2011-05-23-4
/var/log/dpkg.log.5.gz:2012-01-03 10:30:19 status half-installed libsasl2-2 2.1.24~rc1.dfsg1+cvs2011-05-23-4
/var/log/dpkg.log.5.gz:2012-01-03 10:30:19 status unpacked libsasl2-2 2.1.25.dfsg1-2
/var/log/dpkg.log.5.gz:2012-01-03 10:30:19 status unpacked libsasl2-2 2.1.25.dfsg1-2
/var/log/dpkg.log.5.gz:2012-01-03 10:34:34 configure libsasl2-2 2.1.25.dfsg1-2
/var/log/dpkg.log.5.gz:2012-01-03 10:34:34 status unpacked libsasl2-2 2.1.25.dfsg1-2
/var/log/dpkg.log.5.gz:2012-01-03 10:34:34 status half-configured libsasl2-2 2.1.25.dfsg1-2
/var/log/dpkg.log.5.gz:2012-01-03 10:34:34 status installed libsasl2-2 2.1.25.dfsg1-2

Tehát 2011.04.20. volt az a nap, amikor a libsasl2-2 csomag tekintetében elhagytad a Squeeze-t. Ennek már több mint két év két hónapja.

"Megnéztem mi lenne, ha testingre váltanám, de várakozásaimnak megfelelően vagy 500 csomagot szeretne frissíteni."
Nem teljesen értelek. Miért akarnál most testingre váltani, amikor a Squeeze helyett már a Wheezy a stabil kiadás? Akkor már stable, azaz wheezy legyen! Először mindenképpen. És ha az nem felel meg, akkor ha jól megfontoltad, akkor lépj tovább a Jessie felé (testing).

A Wheezy-re való upgrade úgyis eljön belátható időn belül. Akár megteheted most is. Ez az előre menekülés.

"mondjuk csináltam már egy ilyet, de nem voltam közben teljesen nyugodt.."
Akkor először mentés - nyilván most is van -, és csak utána állj neki a dist-upgrade-nek.

Na mostanra sikerült megoldanom.
A Wheezy update viszonylag simán ment, csak két helyen kell ősrégi szkripteket átirogatnom, aztán némi csomag-csereberével sikerült teljesen upgradelni.
A szükséges Amavis, Dovecot és Postfix csomagok újratelepítése után csak vissza kellett másolnom az eredeti postfix konfig fájlokat, és már ment is.
Igaz, ehhez be kellett mennem az irodába, mert újabban hétvégén nem mennek a szerverek, így nincs távoli elérés... :(
Azt hiszem hétfőn beállítom a wake-on-lan-t :)

De a lényeg, hogy sikerült, és nagyon szépen köszönöm a segítséget mindenkinek!! :)

üdv,
optimista

ui.: Azért ez a debian csomagkezelés ez zseniálisan ki van találva! Ha jól számolom, a negyedik release megy fel csak csomag-frissítésekkel, és végül (eddig még) mindig sikerült azonnal vagy viszonylag gyorsan mindent működésre bírni.

Pláne hogy mostanában egyre több csomagnál látok olyanokat, hogy /etc/csomag.d ahová el lehet pakolni a saját beállításokat, és így frissítéskor nem kell diffelni a konfigokat és kitalálni, hogy mégis, hogy lenne jó átkanalazni a régi konfig darabjait, ehe.