On 18.07.2012 11:31, Denis Witt wrote:
> Hi,
>
> I have a machine with Wheezy installed, unfortunately I can't use
> PHP5.4 due to a third party script which isn't compatible yet.
>
> So I added the Squeeze-Sources in my apt sources.list and
> installed PHP5.3 from Squeeze.
>
> I also created the file "php" in /etc/apt/preferences.d/
> containing:
>
> Package: php* Pin: release n=squeeze Pin-Priority: 900
>
> Package: libapache2-mod-php5 Pin: release n=squeeze Pin-Priority:
> 900
>
> But when I check the policy it doesn't seem to work:
>
> apt-cache policy php5 php5: Installed: 5.3.3-7+squeeze13 Candidate:
> 5.4.4-2 Version table: 5.4.4-2 0 500
> ftp://mirror.manitu.net/debian/ wheezy/main amd64 Packages ***
> 5.3.3-7+squeeze13 0 500 http://security.debian.org/
> squeeze/updates/main amd64 Packages 100 /var/lib/dpkg/status
> 5.3.3-7+squeeze8 0 500 ftp://mirror.manitu.net/debian/ squeeze/main
> amd64 Packages
>
> I tried to lower the priority for the wheezy packages:
>
> Package: php* Pin: release n=wheezy Pin-Priority: -10
>
> Package: libapache2-mod-php5 Pin: release n=wheezy Pin-Priority:
> -10
>
> I also tried pinning to "Pin: version 5.3.*" but that didn't helped
> either.
>
> To prevent upgrading I used echo "php-mail-mime hold" | dpkg
> --set-selections etc. for now, but sooner or later I will have to
> run a apt-get dist-upgrade and it would be nice if I hasn't to
> upgrade first and do a rollback for PHP afterwards.
>
> Thanks in advance. Bye.
Hi,
I think that you should replace "n=squeeze" with "a=squeeze" in
/etc/apt/preferences.d/php.
If that doesn't work, I don't know what works, but someone else might
know on this list.
PS. I didn't trim the original message, because I was unsure what I
can trim without removing anything important.
- --
Mika Suomalainen
NOTICE! I am on mobile broadband with very limited time, so I cannot
read emails very much.
The best time to contact me is probably weekends when I have better
connectivity with good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Homepage: http://mkaysi.github.com/
Comment: gpg --keyserver pool.sks-keyservers.net --recv-keys 82A46728
Comment: Public key: http://mkaysi.github.com/PGP/key.txt
Comment: Fingerprint = 24BC 1573 B8EE D666 D10A AA65 4DB5 3CFE 82A4 6728
Comment: Why do I (clear)sign emails? http://git.io/6FLzWg
Comment: Please send plaintext instead of HTML. http://git.io/TAc0cg
Comment: Please don't toppost. http://git.io/7-VB3g
Comment: Please remove PGP lines in replies. http://git.io/nvHrDg
Comment: Charset of this message should be UTF-8.
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 50068394.4090001@hotmail.com">http://lists.debian.org/50068394.4090001@hotmail.com
07-18-2012, 10:30 AM
Denis Witt
apt-pinning
On 18.07.2012 11:36, Mika Suomalainen wrote:
I think that you should replace "n=squeeze" with "a=squeeze" in
/etc/apt/preferences.d/php.