Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-10-2006, 09:12 PM   #1
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Rep: Reputation: 32
CLI apt file version locking- how can it be done?

I have a several headless debian servers without X.

I would like to use a webmin module that is not in the standard repositories. apt-get install webmin webmin-core, no problem.
Update webmin inside webmin, again no problem. Get module, no problem. apt-get update && apt-get upgrade -- big problem! apt doesnt find webmin (because of the upgrade within webmin)- apt borks. It has problems with any upgrade, so: rm -r /etc/webmin && apt-get --purge remove webmin-- voila everything works again. Then reinstall re-update, re-install module. What a pain.

I would like to find a way to lock the package version so apt will not try to update webmin. I'll update webmin through webmin.

I couldn't find anything in:
man apt_preferences
man apt.conf
man apt-get
man aptititude

There IS an easy way through synaptic-- but nothing I can find from the command line.

Any way some old debian hacker could enlighten me?



Last edited by flashingcurser; 10-10-2006 at 09:13 PM.
Old 10-10-2006, 09:31 PM   #2
Dutch Master
Senior Member
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Search for "pinning" a package
Old 10-10-2006, 09:37 PM   #3
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Did you try apt-get remove -f webmin

When Etch becomes stable there will be no more webmin on Debian due to general bugginess and the lack of desire on the part of webmin developers to fix it. Might be time to start searching for an alternative.
Old 10-10-2006, 10:18 PM   #4
Registered: Jun 2006
Posts: 94

Rep: Reputation: 16
aptitude hold package_name
Old 10-11-2006, 12:10 AM   #5
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Original Poster
Rep: Reputation: 32
Thanks ping.
Old 10-11-2006, 01:15 AM   #6
Registered: Jun 2006
Posts: 94

Rep: Reputation: 16
No problem. There's other ways to do it without aptitude, but I like handling it with aptitude since it's a clean and easy way to do it.


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
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM
Simple Newb Question: How do I check what version of Redhat is Installed from the CLI praefex Linux - General 1 01-27-2004 07:30 PM
File locking over Samba rtaft Linux - Software 0 12-30-2003 11:02 AM
python; file locking TheLinuxDuck Programming 22 08-05-2003 05:47 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:06 AM.

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