[SOLVED] Please help me out with my preferences file and apt-get /aptitude. I am at wits end.
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 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
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.
I theorize I don't have the preferences for the Lenny archive correctly configured and his is messign it up.
Any help would be appreciated or failing that some really good documentation for pinning. I've found some resources online but they have been lacking in thoroughness. I need something comprehensive and up-to-date.
did the trick and pulled in what I needed while keeping the old php 5.2.x.
My error was in using 'a=lenny' as opposed to 'a=oldstable'. I also had not realized that I apparently needed to do a 'apt-get -V dist-upgrade' to pull in the new major versions. This was a nice learning experience.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.