LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-20-2005, 02:53 PM   #1
rksanders
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian gnu/linux
Posts: 28

Rep: Reputation: 15
mixed system in apt


The APT HOW TO paragraph 3.8 says " To set up what is your main version of Debian you should edit the /etc/apt/apt.conf to contain the line
APT :: Default-Release "version";"
My /etc/apt directory contains a directory apt.conf.d , but not apt.conf .
The man pages for apt.conf state that it is the "main configuration tool for the apt suite of tools...."
There is no man page or info page for for apt.conf.d .
The apt.conf.d directory contains a file 70debconf which contains a line
DPkg::Pre-Install-Pkgs........; (same form as the APT:: ... line)
Should I create a file apt.conf in the /etc/apt directory and put the line
APT :: Default-Release "version";
in it??? Or put the line in the /etc/apt/ /etc/apt/apt.conf.d/70debconf file???
Or forget about the mixed system under apt???
Or what??

Thanks in advance,
Rusty

Last edited by rksanders; 01-20-2005 at 02:55 PM.
 
Old 01-20-2005, 03:12 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
AFAIK, yes you can simply create this file.

Depending on which Debian flavour you're running, it may not have been created if you didn't need to specify a proxy for Apt to use during installation.

Cheers,

mj
 
Old 01-20-2005, 05:22 PM   #3
rksanders
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian gnu/linux
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks mkrich,

I created the file apt.conf in the /etc/apt directory and added the line

APT :: Default-Release stable;

Any idea how to know it is working before my system is flooded with unstable packages?

Thanks for your help

rusty

Last edited by rksanders; 01-20-2005 at 05:23 PM.
 
Old 01-20-2005, 05:55 PM   #4
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Run in simulation mode:
Code:
apt-get update
apt-get --simulate upgrade > outputfile.log
less output.log
The latter part of the ouput log should indicate from which branch the packages would otherwise have come.

Cheers,

mj
 
Old 01-20-2005, 07:00 PM   #5
rksanders
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian gnu/linux
Posts: 28

Original Poster
Rep: Reputation: 15
As root
uncommented "deb....unstable main contrib" line in sources.list, ran apt-get update. Got error message

reading package lists... error!
E: Dynamic MMap ran out of room
E: Dynamic MMap ran out of room
E: Error occurred while processing octave2.1-headers (NewVersion1
E: Problemwith MergeList /var/lib/apt/lists/http.us.debian.org_dists_unstable_main_binary-i386_
Packages
E: The package lists or status file could not be parsed or open

I assume this means that the cache was not updated, but don't know what all of that means.--Dynamic MMap??
Got same messages when I ran apt-get --simulate upgrade.

Thanks for your help

rusty
 
Old 01-20-2005, 08:56 PM   #6
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
This is caused by the apt cache being too small. You should be able to fix it by adding the following to your apt.conf:
Code:
APT::Cache-Limit "8388608";
Incidentally, from your first post it looks like you have a space after APT and also before Default-Release - this would crash apt it on my system, at least.

Cheers,

mj
 
Old 01-21-2005, 03:38 PM   #7
rksanders
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian gnu/linux
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks again, mjrich, for the response. Again right onthe money.
I'm a bit embarrassed. I thot I had read the Apt HOWTO thoroughly before posting my questions, but after I read your last response I went back through it and sure enough, there in the "How to deal with errors" section was
E: Dynamic MMap....etc.

About the :: . You are right, the spaces are there. When I first wrote my post I noted that the editor didn't seem to like the Apt:efaults sequence and added a funny little icon over the second colon which disappeared when I put the space in.

When I added the line to apt.conf I did it correctly.

Off the subject, I note that you are in NZ. As a kid (many, many years ago) it was always a dream some day to go to NZ. Several years ago My wife and i spent a marvelous month on South Island. Hope to return.

Thanks for your help
rusty
 
Old 01-24-2005, 02:19 PM   #8
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
No worries, and great to hear that you liked NZ !

You can disable automatic conversion of message icons using the 'Disable Smilies in This Post' tickbox below the (main) reply box - something that I usually forget until it's too late...

Cheers,

mj
 
Old 02-04-2006, 02:35 PM   #9
dutler
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Rep: Reputation: 15
Im having trouble trying to run a mixed system.
I have a fresh install and update of the latest Mepis rc.
I have read the APT HOWTO from debian.org

Here is my apt.conf:
Quote:
APT:efault-Release "testing";
APT::Cache-Limit 20000000;
APT::Get::Purge;
APT::Get::AllowUnauthenticated 1;
Acquire::cdrom::Mount "/mnt/cdrom";
It seems I following the guide correctly, but when I ran upgrade again with apt-get upgrade I got many pakages from sid.

The guide said one needed the sid rep for it to work so my sources.list:
Quote:
# Primary
deb ftp://ftp.debian.org/debian/ etch main contrib non-free
deb ftp://ftp.debian.org/debian/ sid main contrib non-free

# MEPIS apt pool - specific packages available on-line
deb http://apt.mepis.org/3.4/ etch main
deb http://apt.mepis.org/3.4/ sid main
So know I have "restored" sarge but commenting out the sid sources and doing a dist-upgrade. Reread the mans and started searching the fourms. When I simulate the apt-get update w (with the sid repos) i get:
Quote:
Reading package lists...
Building dependency tree...
The following packages have been kept back:
amarok amarok-xine k3b libk3b2 ndiswrapper-utils openoffice.org-kde
The following packages will be upgraded:
kdeutils-doc
1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Inst kdeutils-doc [4:3.5-rc1-1] (4:3.5.1-1 Debian:unstable)
Conf kdeutils-doc (4:3.5.1-1 Debian:unstable)
Is looks like I am still getting sid packages even if i do not specify it with the -t sid operator. What am I doing wrong?

Thank you and br,
dutler
 
Old 02-04-2006, 05:44 PM   #10
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
You may want to look into Apt pinning (search either here, Google, or http://wiki.serios.net/wiki/Apt-Pinning_on_Debian). Essentially, it allows a controlled priority to be given to the different branches, or indeed any other odd mixture of sources.

Cheers,

mjrich
 
Old 02-05-2006, 05:38 AM   #11
dutler
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Rep: Reputation: 15
Thank you mjrich. Pinning does seem to be more appropreate for what Im trying to do. Will update check the pinning to not "downgrade" a package?
Here is my prefernce file:
Quote:
Package: *
Pin: release o=MEPIS
Pin-Priority: 901

Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 600

Package: *
Pin: release a=unstable
Pin-Priority: 500
But when I do an update I still get packages from sid, just as before.
Any more ideas?
-dutler
 
Old 02-05-2006, 07:47 AM   #12
dutler
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Rep: Reputation: 15
I give. At least on KDE 3.5.1 on Mepis. Im back to Kubuntu for now, but still need/want to know apt better.

With Kubuntu it isnt so much a sarge/sid issue for me, but a breezy(testing) main and breezy(testing) universe and user depos.

Here is what I have so far for my preference file:
Quote:
Package: *
Pin: release a=ubuntu-seveas c=freenx
Pin-Priority: 990

Package: *
Pin: release a=breezy-security c=main restricted
Pin-Priority: 802

Package: *
Pin: release a=breezy-updates c=main restricted
Pin-Priority: 801

Package: *
Pin: release a=breezy=main restricted
Pin-Priority: 800

Package: *
Pin: release a=breezy-backports
Pin-Priority: 700

Package: *
Pin: release a=breezy-security c=universe
Pin-Priority: 601

Package: *
Pin: release a=breezy c=universe
Pin-Priority: 600

Package: *
Pin: release a=breezy-seveas c=extra, java, seveas-meta, custom
Pin-Priority: 500
Is the multi componet reference of the same breezy-seveas archive legit? ANY comments appreciated.
-dutler
 
Old 02-06-2006, 12:16 AM   #13
dutler
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Rep: Reputation: 15
still learing. for the mepis system --

here is my preferences file:
Quote:
Package: *
Pin: release o=MEPIS a=etch
Pin-Priority: 901

/* I want to keep kde at 3.5.1 with out installing it via apt-get install -t sid ect... And since the pin is under 1100 kde wont downgrade when 3.5.1 hits testing. */

Package: kdm kdebase hal
Pin: release o=Debian v=3.5.1
Pin-Priority: 990

/* etch is frozen right? so if i want a pkg that isnt in etch i should look in testing before sid right? */
Package: *
Pin: release o=Debian a=etch
Pin-Priority: 810

Package: *
Pin: release o=Debian a=testing
Pin-Priority: 800
/* with pin <500 I will need to call the package manually. ie install -t sarge-backports openoffice2 */

Package: *
Pin: release a=sarge-backports
Pin-Priority: 200

Package: *
Pin: release o=Debian a=stable
Pin-Priority: 100

Package: *
Pin: release o=Debian a=sid
Pin-Priority: 70
Here is my apt.conf:
Quote:
APT:efault-Release "testing";
APT::Cache-Limit 20000000;
APT::Get::Purge;
APT::Get::AllowUnauthenticated 1;
Acquire::cdrom::Mount "/mnt/cdrom";

// HTTP method configuration - local squid proxy
http {
Proxy "http://192.168.1.1";
Timeout "120";
Pipeline-Depth "5";
No-Cache "false";
//Max-Age "86400";
No-Store "false";
};
And finaly my sources.list:
Quote:
# Primary
deb ftp://ftp.debian.org/debian stable main contrib non-free
deb ftp://ftp.debian.org/debian etch main contrib non-free
deb ftp://ftp.debian.org/debian sid main contrib non-free

# Sources
# deb-src ftp://ftp.debian.org/debian stable main contrib non-free
# deb-src ftp://ftp.debian.org/debian etch main contrib non-free
# deb-src ftp://ftp.debian.org/debian sid main contrib non-free

# MEPIS apt pool - specific packages available on-line
deb http://apt.mepis.org/3.4 etch main
deb http://apt.mepis.org/3.4 sid main

# Security upgrades for Etch
deb http://security.debian.org/ testing/updates main contrib non-free

#Sarge Backports
deb http://www.backports.org/debian/ sarge-backports main
I have a fresh instal of SM 3.4 rc3, then did an update/upgrade before making any changes to apt.
Now when I run "apt-get --simulate upgrade > outputfile.log"
I get:
Quote:
Reading package lists...
Building dependency tree...
The following packages have been kept back:
amarok amarok-xine k3b libk3b2 libqt4-qt3support libqt4-sql
ndiswrapper-utils openoffice.org-kde scribus
The following packages will be upgraded:
openoffice.org openoffice.org-base openoffice.org-calc openoffice.org-common
openoffice.org-core openoffice.org-draw openoffice.org-impress
openoffice.org-java-common openoffice.org-l10n-en-us openoffice.org-math
openoffice.org-writer python-uno ttf-opensymbol
13 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
Inst openoffice.org-l10n-en-us [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst openoffice.org-common [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst ttf-opensymbol [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst openoffice.org-core [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst python-uno [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst openoffice.org-writer [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst openoffice.org-calc [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst openoffice.org-draw [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst openoffice.org-impress [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst openoffice.org-math [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst openoffice.org-java-common [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst openoffice.org-base [2.0.1-1] (2.0.1-2 Debian:unstable)
Inst openoffice.org [2.0.1-1] (2.0.1-2 Debian:unstable)
Conf openoffice.org-l10n-en-us (2.0.1-2 Debian:unstable)
Conf ttf-opensymbol (2.0.1-2 Debian:unstable)
Conf openoffice.org-core (2.0.1-2 Debian:unstable)
Conf openoffice.org-common (2.0.1-2 Debian:unstable)
Conf python-uno (2.0.1-2 Debian:unstable)
Conf openoffice.org-writer (2.0.1-2 Debian:unstable)
Conf openoffice.org-calc (2.0.1-2 Debian:unstable)
Conf openoffice.org-draw (2.0.1-2 Debian:unstable)
Conf openoffice.org-impress (2.0.1-2 Debian:unstable)
Conf openoffice.org-math (2.0.1-2 Debian:unstable)
Conf openoffice.org-java-common (2.0.1-2 Debian:unstable)
Conf openoffice.org-base (2.0.1-2 Debian:unstable)
Conf openoffice.org (2.0.1-2 Debian:unstable)
We can clearly see Iam doing it all wrong. With "update" I had desired for KDE to be updated. Openoffice should change, it I want the back port I need to manually call it. So Why is KDE3.5.1 not being pulled in and why is openoffice and the others comming from unstable?

Thanks for the help and br,
dutler
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a mixed system: Bad? How bad? haertig Debian 5 11-09-2005 02:54 PM
#apt-get -t unstable install (mixed system) ekdya Debian 3 10-10-2005 05:15 PM
How to keep a mixed system kram Debian 3 03-03-2005 06:43 PM
mixed system in apt rksanders Linux - Newbie 2 01-21-2005 01:38 AM
can apt repositories be mixed, redhat and connectiva?? bosewicht Linux - Newbie 1 11-27-2003 08:08 PM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration