davem7 |
03-29-2012 01:48 PM |
Please help me out with my preferences file and apt-get /aptitude. I am at wits end.
Hello. I have a new Debian Squeeze install on a remote server and I must keep php 5.2.x for now even though it is unsupported (I have an old script which is encoded and provided by a 3rd party which I rely on). I have successfully done that by making use of archive (lenny) and pulling from there. But my problem is that now I need to update my codecs and ffmpeg.
What is happening with this now is:
1. php 5.3.x is being held back correctly. (good)
2. It does not seem to be pulling in the newer ffmpeg from the multimedia repo (bad).
Quote:
# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
ffmpeg libapache2-mod-php5 libavcodec52 libavdevice52 libavformat52 libpostproc51 libswscale0 mencoder mplayer php5-cli php5-common php5-gd php5-mysql php5-suhosin
The following packages will be upgraded:
libdrm-intel1 libdrm-radeon1 libdrm2 libvpx0
4 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
Need to get 1,543 kB of archives.
After this operation, 41.0 kB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
|
What I want it to pull from in order is:
- any php5* (or other related php 5.2.x file) use archive.debian.org
- For ffmpeg and all codecs, use the www.debian-multimedia.org repo.
- For everything else, use Debian Squeeze as normal.
Here's my /etc/apt/sources.list:
Code:
# deb http://ftp.us.debian.org/debian/ squeeze main
deb http://ftp.us.debian.org/debian/ squeeze main
deb-src http://ftp.us.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.us.debian.org/debian/ squeeze-updates main
deb-src http://ftp.us.debian.org/debian/ squeeze-updates main
#for old php
#deb ftp://ftp2.de.debian.org/debian/ lenny main contrib non-free
#deb-src ftp://ftp2.de.debian.org/debian/ lenny main contrib non-free
#deb ftp://ftp.us.debian.org/debian/ lenny main contrib non-free
#deb-src ftp://ftp.us.debian.org/debian/ lenny main contrib non-free
deb http://archive.debian.org/debian/ lenny main contrib non-free
deb-src http://archive.debian.org/debian/ lenny main contrib non-free
#for multimedia
deb http://www.debian-multimedia.org squeeze main non-free
And my /etc/apt/preferences.d/preferences:
Code:
Package: php5-enchant
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-svn
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-lasso
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-xsl
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-symfony1.0
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-xapian
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-memcached
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-remctl
Pin: release a=lenny
Pin-Priority: 1100
Package: php5
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-sasl
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-sqlite
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-interbase
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-tidy
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-xdebug
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-snmp
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-gd
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-ps
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-exactimage
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-auth-pam
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-curl
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-memcache
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-radius
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-uuid
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-pspell
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-mhash
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-xmlrpc
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-pgsql
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-gpib
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-mcrypt
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-recode
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-tokyo-tyrant
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-ffmpeg
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-imap
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-intl
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-geoip
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-ldap
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-xcache
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-imagick
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-mysql
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-dbg
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-cgi
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-mapscript
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-cli
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-dev
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-gmp
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-adodb
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-idn
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-common
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-librdf
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-sqlrelay
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-ming
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-sybase
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-odbc
Pin: release a=lenny
Pin-Priority: 1100
Package: php5-suhosin
Pin: release a=lenny
Pin-Priority: 1100
Package: libapache2-mod-php5
Pin: release a=lenny
Pin-Priority: 1100
Package: *
Pin: origin www.debian-multimedia.org
Pin-Priority: 990
Package: *
Pin: release a=stable
Pin-Priority: 600
The preferences file is a monster because evidently wildcards besides a lone '*' do not work (i.e. specifying 'php5*' is not supported) and I need to keep all the php5* files at php 5.2.x. The top lines just repeat different packages. Don't waste your time checking each individually. The bottom ones are for Squeeze and debian-multimedia.
Please let me know where I am going wrong. Thank you for your assistance. :)
|