[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-pinning



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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/

iQIcBAEBCgAGBQJQBoOMAAoJEE21PP6CpGcoMOMP+wRloBk6u/NLIHGBEBj9uNlH
NIg0lnk4rZla9PJZelzhDOIFmrwno3TwObTX0RHGakMuiRf8Eh8/WSDS+YkNevEU
ga2+BOLwCQEcLYZv8th2T9zzlROrnO5O+GVU51LPTrWxswH23Ln7w9RjFz526qrQ
IJH79anmPiOXc23j6KeRzl8MbBihvrVsXK6yM+66ZzPUyRTZBCKd16dXHoC2/R2k
XXCY25PlHIfVmPGd/N4tqfJIfFvnZMusBZwy1gRLc14ONUzFSZWvyMfY6sRVrO/p
CMhtLWehf+PgNNG54LsbdT63L7DAtdLgYm2Flf5TCU79Wd37JjXQE0WZeJq5REo3
WgZHHFA7Ew0fVTaQQXkF1EmwARVEDRM846Ir2C63Wf+kHBv+C+/azTCKyXIyFKfc
Rdm34SFmCrCDqEmg613UPWPqlhnQmcP8a+/QvLPke3n1iD6bS/dK/CFJf6aP7WKw
p/WHcZ5tDuzNIyH2ZDo9q8MD5yDiiPbmqTzVoaLjUjBfEJba4EBPB1FQjEO4cEN5
Zpod7yqVsinP1W5BKuE5vQ1YcetnARZtXN9EBMqZeYUDEdgThql+aPGJ8nEeVgSv
XCk+vlkq9PgeRE73pS4ckq89cuna17zvEokRgBzPnvTyz1saMGITiAt2E6JTaJFC
bJOY3VZFVWtpQK7bs8GF
=lwqw
-----END PGP SIGNATURE-----


Reply to: