[olug] apt-get with RedHat basics

Ryan O'Rourke ryano at ch-gifts.com
Tue Apr 1 13:09:15 UTC 2003


On Mon, 2003-03-31 at 14:41, Ryan O'Rourke wrote:
> Scott Jones said:
> > On Monday 31 March 2003 02:09 pm, Ryan O'Rourke wrote:
> >
> >> Does anyone know how I can use apt-get on RH 8 to exclude certain
> >> packages I don't want to upgrade?
> 
> > You can set it in /etc/apt/apt.conf:
> >
> > RPM
> >    // Leave list empty to disable
> >    Hold {
> >        "package-to-hold";
> >    };

Hmm... this still isn't really working for me. Commands and their output
as well as a section of apt.conf follow:

############
# apt.conf #
############
RPM {
    Ignore { };
    Hold {"glibc"; "kernel"; "ppp"};
    Allow-Duplicated { "^kernel$"; "^kernel-"; "^alsa-kernel";
"^gpg-pubkey$" };
    Options { };
    Install-Options "";
    Erase-Options "";
    Source {
        Build-Command "rpmbuild --rebuild";
    };
############
[root at disco_stu apt]# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  kernel#2.4.18-14: Conflicts: ppp (<= 2.3.15)
E: Unmet dependencies. Try using -f.

[root at disco_stu apt]# apt-get -f install --no-act
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
  kernel#2.4.18-14: Conflicts: ppp (<= 2.3.15)
E: Unable to correct problems, you have held broken packages.
E: Unable to correct dependencies

So next I edit apt.conf so there are no packages in the HOLD list:

[root at disco_stu apt]# apt-get upgrade --no-act
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  kernel#2.4.18-14: Conflicts: ppp (<= 2.3.15)
E: Unmet dependencies. Try using -f.

[root at disco_stu apt]# apt-get -f install --no-act
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  kernel-pcmcia-cs#1:3.1.31-9 ppp-mppe pptp-linux redhat-config-network
rp-pppoe wvdial
0 packages upgraded, 0 newly installed, 6 removed and 10 not upgraded.
Remv kernel-pcmcia-cs#1:3.1.31-9 (1:3.1.31-9 Unknown:Unknown/Unknown)
[kernel#2.4.18-14 ]
Remv pptp-linux (1.2.0-1 ) [kernel#2.4.18-14 ]
Remv redhat-config-network (1.1.20-1 Unknown:Unknown/Unknown)
[kernel#2.4.18-14 ]
Remv wvdial (1.53-7 Unknown:Unknown/Unknown) [kernel#2.4.18-14 ]
Remv rp-pppoe (3.4-7 Unknown:Unknown/Unknown) [kernel#2.4.18-14 ]
Remv ppp-mppe (2.4.0-4 )

Apt wants to remove all those packages? That doesn't sound good to me. I
need at least some of those to make my
VPN connection work. Even using '--force-yes' in addition to the above
commands yeilds the same error messages.

Any more help getting this straightened out would be greatly
appreciated. I'd love to get apt working on all my
systems so I don't have to deal with up2date again.

Thanks again.

-- Ryan




More information about the OLUG mailing list