FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-18-2012, 09:36 AM
Mika Suomalainen
 
Default 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
NIg0lnk4rZla9PJZelzhDOIFmrwno3TwObTX0RHGakMuiRf8Eh 8/WSDS+YkNevEU
ga2+BOLwCQEcLYZv8th2T9zzlROrnO5O+GVU51LPTrWxswH23L n7w9RjFz526qrQ
IJH79anmPiOXc23j6KeRzl8MbBihvrVsXK6yM+66ZzPUyRTZBC Kd16dXHoC2/R2k
XXCY25PlHIfVmPGd/N4tqfJIfFvnZMusBZwy1gRLc14ONUzFSZWvyMfY6sRVrO/p
CMhtLWehf+PgNNG54LsbdT63L7DAtdLgYm2Flf5TCU79Wd37Jj XQE0WZeJq5REo3
WgZHHFA7Ew0fVTaQQXkF1EmwARVEDRM846Ir2C63Wf+kHBv+C+/azTCKyXIyFKfc
Rdm34SFmCrCDqEmg613UPWPqlhnQmcP8a+/QvLPke3n1iD6bS/dK/CFJf6aP7WKw
p/WHcZ5tDuzNIyH2ZDo9q8MD5yDiiPbmqTzVoaLjUjBfEJba4EBP B1FQjEO4cEN5
Zpod7yqVsinP1W5BKuE5vQ1YcetnARZtXN9EBMqZeYUDEdgThq l+aPGJ8nEeVgSv
XCk+vlkq9PgeRE73pS4ckq89cuna17zvEokRgBzPnvTyz1saMG ITiAt2E6JTaJFC
bJOY3VZFVWtpQK7bs8GF
=lwqw
-----END PGP SIGNATURE-----


--
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
 
Old 07-18-2012, 10:30 AM
Denis Witt
 
Default 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.


Hi Mika,

according to apt-cache policy the "n" is fine:

500 http://security.debian.org/ squeeze/updates/main amd64 Packages
release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian-Security,c=main
origin security.debian.org

Anyway, I tried it with "a" also but I didn't mention it as it was by
accident during my first try.


What makes me wonder is that "apt-cache policy" doesn't show any entries
below "Pinned packages:".


I also tried using /etc/apt/preferences instead of
/etc/apt/preferences.d/php, but nothing changes.


Bye.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 5006903B.7090500@concepts-and-training.de">http://lists.debian.org/5006903B.7090500@concepts-and-training.de
 
Old 07-18-2012, 10:40 AM
Denis Witt
 
Default apt-pinning

On 18.07.2012 10:31, Denis Witt wrote:


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


I got it working. apt obviously dislikes leading spaces.

Package: php*
Pin: release n=squeeze
Pin-Priority: 1001

Package: libapache2-mod-php*
Pin: release n=squeeze
Pin-Priority: 1001

is working fine. %-/

I'm still a bit confused about the output of apt-cache policy, because
it doesn't really changed (only the "Candidate" part):


apt-cache policy php5
php5:
Installed: 5.3.3-7+squeeze13
Candidate: 5.3.3-7+squeeze13
Package pin: 5.4.4-2
Version table:
5.4.4-2 -10
500 ftp://mirror.manitu.net/debian/ wheezy/main amd64 Packages
*** 5.3.3-7+squeeze13 -10
500 http://security.debian.org/ squeeze/updates/main amd64 Packages
100 /var/lib/dpkg/status
5.3.3-7+squeeze8 -10
500 ftp://mirror.manitu.net/debian/ squeeze/main amd64 Packages

But even if I use "apt-get dist-upgrade" the PHP-Packages will remain
the Squeeze ones.


When I use "apt-cache policy" without parameter it shows the pinning:

Pinned packages:
...
php5 -> 5.4.4-2
...

Bye.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 50069288.3000205@concepts-and-training.de">http://lists.debian.org/50069288.3000205@concepts-and-training.de
 

Thread Tools




All times are GMT. The time now is 06:04 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org