On Wed, 12 Dec 2001 12:03:12 +0100, Morten Brix Pedersen <morten@wtf.dk> wrote:
> Du skal kun køre dist-upgrade når du rent faktisk opgraderer din dist,
> brug upgrade når du kun lige skal 'følge med i de nyeste pakker'.
Det er ikke korrekt..Forskellen på dist-upgrade og upgrade er at
dist-upgrade er noget snedigere til at håndtere afhængigheder, samt er at
den vil prøve at opgradere vigtige pakker på bekostning af mindre vigtige.
se nedenfor under [1], så jeg ser egentlig ikke noget grund til at bruge
upgrade fremfor dist-grade, selvom man ikke skifter fra f.eks. 'stable' til
'testing'.
> Hvis ovenstående ikke løser problemet, så findes der også noget der
> hedder --target-release i `man apt-get`, du kan prøve at lege med det.
> Jeg har aldrig prøvet det.
Det løste ikke prblemet. Uanset hvad jeg gør, vil den hente pakker fra
unstable også. Det afhjælper dog problemet lidt. En 'apt-get -u dist-upgrade'
vil hente 308 pakker. En 'apt-get upgrade' vil hente 217 pakker og en 'apt-get
-t testing upgrade' vil hente 59 pakker. Men helt at få den til at lade være
med at hente pakker fra unstable kan jeg ikke.
[1]
upgrade
upgrade is used to install the newest versions of all packages currently
installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new versions
available are retrieved and upgraded; under no cir cumstances are currently
installed packages removed, or packages not already installed retrieved and
installed. New versions of currently installed packages that cannot be
upgraded without changing the install status of another package will be left
at their current version. An update must be performed first so that apt-get
knows that new ver sions of packages are available.
dist-upgrade
dist-upgrade, in addition to performing the func tion of upgrade, also
intelligently handles chang ing dependencies with new versions of packages;
apt-get has a "smart" conflict resolution system, and it will attempt to
upgrade the most important packages at the expense of less important ones if
necessary. The /etc/apt/sources.list file contains a list of locations from
which to retrieve desired package files.
--
Aagren
Jabber Instant Messenger ID: aagren@jabber.dk
(see
http://jabber.dk)