Re: apt-get/dselect-problem

2001-07-13 Thread Joost Kooij
On Thu, Jul 12, 2001 at 10:38:47PM +0200, Martin Bretschneider wrote:
  If you do not want to update all packages, put the ones that you do
  not want to upgrade on hold.  If you want to track only a few packages,
  put everything on hold first and then unhold the few.
 
 Hm, I yust wanna update few debs day by day. If I understand it the right
 way, I can make an 'apt-get update' and then install my wanted deb with
 apt-get [deb]. Right?

If you mean to keep updating the same group of packages, then putting
all other packages on hold is the best way, I think.  YMMV.

If you want to upgrade a few packages every day, thus gradually upgrading
your whole system, then maybe running apt-get install $somepkg may be
more convenient.  Still, it is advisable to update the available file 
in dselect once in a while and to check the package selections.

 Well, what's going to happed with dependencies at all. You also mentioned
 it. Is there another file that contains every installed deb, its version
 and it dependencies? If yes, I can do update my sources.list as long as I
 want because that just contain debs *to install*.
 
 Please correct my if I'm wrong;)

I'm not entirely sure what you mean, actually.  Probably, you're talking
about the dpkg status database.  It is not the same as the available
database, if that is what you mean, indeed.

Cheers,


Joost



Re: apt-get/dselect-problem

2001-07-12 Thread Martin Bretschneider
moin moin Joost!

On Wed, 11 Jul 2001 18:13:44 +0200 you were able to write:

[...]
 If you want to update from ftp, uncomment all but the ftp uris.

OK.
 
 If you do not want to update all packages, put the ones that you do
 not want to upgrade on hold.  If you want to track only a few packages,
 put everything on hold first and then unhold the few.

Hm, I yust wanna update few debs day by day. If I understand it the right
way, I can make an 'apt-get update' and then install my wanted deb with
apt-get [deb]. Right?

[complicated dselct;)]

Well, what's going to happed with dependencies at all. You also mentioned
it. Is there another file that contains every installed deb, its version
and it dependencies? If yes, I can do update my sources.list as long as I
want because that just contain debs *to install*.

Please correct my if I'm wrong;)

-- 
  Where prejudice exists it always discolors our thoughts.
(o_ When in doubt tell the truth. Mark Twain   (o|
//\  (o_. 'In order to verify the truth use gnupg.(o  //\
V_/_ //\c{} _O)   Key-ID: 4EA52583  Regards, Martin   (*_ //\  V_/,



Re: apt-get/dselect-problem

2001-07-12 Thread Graham Williams
On 12/07/01 22:38 +0200, Martin Bretschneider wrote:
[...] 
 Hm, I yust wanna update few debs day by day. If I understand it the right
 way, I can make an 'apt-get update' and then install my wanted deb with
 apt-get [deb]. Right?
[...]

# apt-get install emacs20

will get emacs20 deb and required dependencies from where you've told
apt to look (in /etc/apt/sources.list) and install them all.

I also like to do an update regularly and see what's new (new packages
and new upgrades). Then choose which I want to install and upgrade.
I've used dselect, deity, and aptitude, and they're okay but I like to
feel a bit more in control of what is happening.  So I wrote a script
(which I call wajig and make available at
http://edm.act.cmis.csiro.au/debian/wajig) that keeps track of changes
since I last did an update (the script simply captures some of the
tricks for managing packages I've observed over the years). I
regularly do something like:

# wajig update  (just apt-get update)
[...]

# wajig new
Package Available
===-
3dwm-geoclient  0.2.4-2 
3dwm-server 0.2.4-2 
3dwm-texclient  0.2.4-2 
3dwm-vncclient  0.2.4-2 
abbrowser   4:2.1.1-4   
gphoto2 2.0beta1-4  
gphoto2-dev 2.0beta1-4  
jython  2.1-alpha1-1
jython-doc  2.1-alpha1-1
[...]

# wajig whatis jython
jython-doc 2.1-alpha1-1  (269.3k)
Jython documentation including API docs
jython 2.1-alpha1-1  (751.8k)
Python seamlessly integrated with Java

# wajig install jython
[...]

# wajig newupgrades
Package Available   Installed
===-===-
adduser 3.393.33
auctex  10.0g-3 10.0d-1 
base-files  2.2.10  2.2.4   
bonobo  1.0.7-1 0.37-5  
cdrecord4:1.10-13:1.9-1 
debconf 0.9.77  0.9.31  
emacs20 20.7-9  20.7-3  
eperl   2.2.14-32.2.14-0.6  
[...]

Regards,
Graham



Re: apt-get/dselect-problem

2001-07-11 Thread Joost Kooij
On Tue, Jul 10, 2001 at 08:04:55PM +0200, Martin Bretschneider wrote:
 moin moin Joost!
 
 On Tue, 10 Jul 2001 01:33:02 +0200 you were able to write:
 
 [...]
   deb cdrom:[Debian GNU/Linux 2.4 _Sid_ - fsn.hu's i386 Binary-1
   (20010525)]/ unstable contrib main non-US/contrib non-US/main
   non-US/non-free non-free
   
   deb ftp://ftp.debian.org/debian sid main contrib non-free
   
   So what shall I do?
  
  Comment out the ftp uri, it is polluting the available list with much
  newer versions than what is on the cd's.  Then run dselect update.  
 
 But if I wanna update some packages from ftp what should I do? 
 Delete the #?

If you want to update from ftp, uncomment all but the ftp uris.

If you do not want to update all packages, put the ones that you do
not want to upgrade on hold.  If you want to track only a few packages,
put everything on hold first and then unhold the few.

This is best done by selecting the sections headers of groups of packages
and setting the whole group on hold with 'H'.  Simply acknowledge any
suggestions by dselect to set other packages also on hold.

When you've put all installed packages on hold, quit dselect and
update /etc/apt/sources.list.  Go back to dselect and and run update.
Then go back to select and unhold the packages you want to upgrade with
'G'.  Possibly dselect will detect some unresolved dependencies, in that
case unhold the packages that are must also be upgraded because of some
depends or conflicts.

Then run install from the menu.

Or, without using the dselect menu:
dselect select  # set all packages on hold
edit /etc/apt/sources.list# remove cd, put in ftp
dselect update  # update new available packages list
dselect select  # unhold packages you want upgraded
dselect install # upgrade selected packages

Be careful that you set packages on hold before updating the available
packages list.  In the new list, dependencies may have changed or
been added.  If all packages are already on hold, you should not have
to deal with these changes.

If you do this the wrong order, it will be very confusing, because dselect
will first try to update the selections to accomodate for any new depends
or conflicts of all selected packages.  Moreover, when you then try to set
all packages on hold, dselect will be hopelessly confused, as will you,
soon enough.  Unless you completely understand what is going on and are
able to oversee multiple dependency structures on dozens of packages,
the only way out is pressing 'X' repeatedly and updating the available
packages list to the cdrom versions before entering dselect select again.

Cheers,


Joost



Re: apt-get/dselect-problem

2001-07-10 Thread Martin Bretschneider
moin moin Joost!

On Tue, 10 Jul 2001 01:33:02 +0200 you were able to write:

[...]
  deb cdrom:[Debian GNU/Linux 2.4 _Sid_ - fsn.hu's i386 Binary-1
  (20010525)]/ unstable contrib main non-US/contrib non-US/main
  non-US/non-free non-free
  
  deb ftp://ftp.debian.org/debian sid main contrib non-free
  
  So what shall I do?
 
 Comment out the ftp uri, it is polluting the available list with much
 newer versions than what is on the cd's.  Then run dselect update.  

But if I wanna update some packages from ftp what should I do? 
Delete the #?
-- 
  Where prejudice exists it always discolors our thoughts.
(o_ When in doubt tell the truth. Mark Twain   (o|
//\  (o_. 'In order to verify the truth use gnupg.(o  //\
V_/_ //\c{} _O)   Key-ID: 4EA52583  Regards, Martin   (*_ //\  V_/,



Re: apt-get/dselect-problem

2001-07-10 Thread der.hans
Am 09. Jul, 2001 schwäzte Martin Bretschneider so:

Grüßle Martin,

 Ok, and what should I do if I wanna install from an ftp-server? Put the
 entry again there? It's very uncofortable, isn't it?

Yes, it's a pain. That's why I came up with those other configs for apt.

The reason you're seeing this is probably because the debs on the ftp server
are more recent. If you can just take those put the ftp entries back into
/etc/apt/sources.list update and install as normal and ignore the rest of
this email :).

  Alternative ( and cooler, but I haven't tried it ), use
  /etc/apt/preferences.
 
 It doesn't exist;)

Look for my previous posts ( last few weeks ) and at man apt_preferences.

  I don't know what to put to use
  the CDs,  but look at the man page for apt_preferences and I'd think
  Origin is what needs to be used.
 
 But it seems very complicated:(

It's not too complicated once you've figured it out :).

 I downloaded it but I don't relize what it does:( You should add doku.

I was gonna, but since preferences support was added it should become
unnecessary. I still need to figure out how to do a few things, though.

 Hm, I don't have apt-cd only apt-cdrom:

Either copy apt-test and apt-cache-test to apt-cd and apt-cache-cd and make
the appropriate file in /etc/apt/ or just change one of the sources files in
the tarball and use it.

Those 'scripts' are just apt-get and apt-cache with some alternative
configuration info.

The do, however, work quite well. I used them for more than a year before
finding out about /etc/apt/preferences.

 How do you all update from diferent sources? I don't know 'cause I'm a
 debain-newbie;)

In that case, here's some info on using my tarball:

tar tfz tarball.tgz will show you the contents of the tarball,
tarball.tgz. tar xfz tarball.tgz will unpack it. I presume you got that
since you've looked at it. Unpacking my tarball from / places the scripts in
/usr/local/sbin/ and some config stuff in /etc/apt. It also makes a few
control dirs under /var/. The contents will show you everything.

To make it easier, I suggest copying /etc/apt/unstable.list to
/etc/apt/unstable.list.orig and then create a new /etc/apt/unstable.list
that has the ftp entries. Then comment out the config lines for ftp in
/etc/apt/sources.list and uncomment the CD entries.

apt-get and apt-cache will then work on the packages from the CDs.

apt-uns and apt-cache-uns will work on the packages from the ftp site.

Under your current circumstances, this is probably the easiest way to go (
aside from comment/uncommenting the ftp entries in sources.list depending on
whether or not you want packages from the net ). As you learn and everything
makes more sense, you'll figure out how to do it better.

ciao,

der.hans
-- 
# [EMAIL PROTECTED] home.pages.de/~lufthans/ www.DevelopOnline.com
#  It's up to the reader to make the book interesting.
#  An author has only the opportunity to make it uninteresting. - der.hans



Re: apt-get/dselect-problem

2001-07-09 Thread Martin Bretschneider
moin moin der.hans!

On Sun, 8 Jul 2001 12:26:25 -0700 (MST) you were able to write:

 Am 08. Jul, 2001 schwäzte Martin Bretschneider so:
 
  I've got four Sid-images (from may) and wanted to update some
  proggies. But there weren't any updates for gpgme (lobgpgme0) that
  doesn't installed a config-file that is needed to compile my mua with
  gpg-support.
  
  Nevertheless, now I wanted to install some packages from the cds, but
  dselect wants to install them from the ftp-server I put in
  /etc/apt/sources.list:
 
 Not sure how this will affect dselect, but comment out the ftp sites 
 and do an apt-get update. That will remove the entries for the ftp 
 sites, so the CDs should be used.

Ok, and what should I do if I wanna install from an ftp-server? Put the
entry again there? It's very uncofortable, isn't it?
 
 Alternative ( and cooler, but I haven't tried it ), use
 /etc/apt/preferences.

It doesn't exist;)

 If you're using apt out of woody or later,

I've sid.

 then you can use /etc/apt/preferences. 

Hm;(

 I don't know what to put to use
 the CDs,  but look at the man page for apt_preferences and I'd think
 Origin is what needs to be used.

But it seems very complicated:(

 For a further alternative if preferences doesn't work out well and this
 is something you run into a lot look at:
 
 http://home.pages.de/~lufthans/unix/
 
 You want the security, testing and unstable updater for debian. It's
 easy enough to tweak one of those to become apt-cd.

I downloaded it but I don't relize what it does:( You should add doku.

 Again, not certain how this would work with dselect, but once you've
 updated appropriately you could use apt-get install packagename or 
apt-cd install packagename.

Hm, I don't have apt-cd only apt-cdrom:

[EMAIL PROTECTED]:~$ locate apt-cd
/usr/bin/apt-cdrom
/usr/share/man/man8/apt-cdrom.8.gz

man apt-cdrom says:

DESCRIPTION
   apt-cdrom is used to add a  new  CDROM  to  APTs  list  of
   available sources. apt-cdrom takes care of determining the
   structure of the disc as well as  correcting  for  several
   possible mis-burns and verifying the index files.

   It  is  necessary  to  use apt-cdrom to add CDs to the APT
   system, it cannot be done by hand. Furthermore  each  disk
   in  a multi-cd set must be inserted and scanned separately
   to account for possible mis-burns.

   Unless the -h, or --help option is given one of  the  com­
   mands below must be present.

So I cannot install via apt-cdrom.


How do you all update from diferent sources? I don't know 'cause I'm a
debain-newbie;)
-- 
  Where prejudice exists it always discolors our thoughts.
(o_ When in doubt tell the truth. Mark Twain   (o|
//\  (o_. 'In order to verify the truth use gnupg.(o  //\
V_/_ //\c{} _O)   Key-ID: 4EA52583  Regards, Martin   (*_ //\  V_/,



Re: apt-get/dselect-problem

2001-07-09 Thread Joost Kooij
On Sun, Jul 08, 2001 at 07:48:46PM +0200, Martin Bretschneider wrote:
 Hi folks,
 
 I've got four Sid-images (from may) and wanted to update some proggies.
 But there weren't any updates for gpgme (lobgpgme0) that doesn't installed
 a config-file that is needed to compile my mua with gpg-support.
 
 Nevertheless, now I wanted to install some packages from the cds, but
 dselect wants to install them from the ftp-server I put in
 /etc/apt/sources.list:
 
 deb cdrom:[Debian GNU/Linux 2.4 _Sid_ - fsn.hu's i386 Binary-6
 (20010525)]/ unstable contrib main non-US/contrib non-US/main
 non-US/non-free non-free
 deb cdrom:[Debian GNU/Linux 2.4 _Sid_ - fsn.hu's i386 Binary-3
 (20010525)]/ unstable contrib main non-US/contrib non-US/main
 non-US/non-free non-free
 deb cdrom:[Debian GNU/Linux 2.4 _Sid_ - fsn.hu's i386 Binary-2
 (20010525)]/ unstable contrib main non-US/contrib non-US/main
 non-US/non-free non-free
 deb cdrom:[Debian GNU/Linux 2.4 _Sid_ - fsn.hu's i386 Binary-1
 (20010525)]/ unstable contrib main non-US/contrib non-US/main
 non-US/non-free non-free
 
 deb ftp://ftp.debian.org/debian sid main contrib non-free
 
 So what shall I do?

Comment out the ftp uri, it is polluting the available list with much
newer versions than what is on the cd's.  Then run dselect update.  

If that does not fix it still, run dpkg --clear-avail and update again.
I think it should work right away, though.

Cheers,


Joost



apt-get/dselect-problem

2001-07-08 Thread Martin Bretschneider
Hi folks,

I've got four Sid-images (from may) and wanted to update some proggies.
But there weren't any updates for gpgme (lobgpgme0) that doesn't installed
a config-file that is needed to compile my mua with gpg-support.

Nevertheless, now I wanted to install some packages from the cds, but
dselect wants to install them from the ftp-server I put in
/etc/apt/sources.list:

deb cdrom:[Debian GNU/Linux 2.4 _Sid_ - fsn.hu's i386 Binary-6
(20010525)]/ unstable contrib main non-US/contrib non-US/main
non-US/non-free non-free
deb cdrom:[Debian GNU/Linux 2.4 _Sid_ - fsn.hu's i386 Binary-3
(20010525)]/ unstable contrib main non-US/contrib non-US/main
non-US/non-free non-free
deb cdrom:[Debian GNU/Linux 2.4 _Sid_ - fsn.hu's i386 Binary-2
(20010525)]/ unstable contrib main non-US/contrib non-US/main
non-US/non-free non-free
deb cdrom:[Debian GNU/Linux 2.4 _Sid_ - fsn.hu's i386 Binary-1
(20010525)]/ unstable contrib main non-US/contrib non-US/main
non-US/non-free non-free

deb ftp://ftp.debian.org/debian sid main contrib non-free

So what shall I do?
-- 
  Where prejudice exists it always discolors our thoughts.
(o_ When in doubt tell the truth. Mark Twain   (o|
//\  (o_. 'In order to verify the truth use gnupg.(o  //\
V_/_ //\c{} _O)   Key-ID: 4EA52583  Regards, Martin   (*_ //\  V_/,



Re: apt-get/dselect-problem

2001-07-08 Thread der.hans
Am 08. Jul, 2001 schwäzte Martin Bretschneider so:

 I've got four Sid-images (from may) and wanted to update some proggies.
 But there weren't any updates for gpgme (lobgpgme0) that doesn't installed
 a config-file that is needed to compile my mua with gpg-support.
 
 Nevertheless, now I wanted to install some packages from the cds, but
 dselect wants to install them from the ftp-server I put in
 /etc/apt/sources.list:

Not sure how this will affect dselect, but comment out the ftp sites and do
an apt-get update. That will remove the entries for the ftp sites, so the
CDs should be used.

Alternative ( and cooler, but I haven't tried it ), use
/etc/apt/preferences.

If you're using apt out of woody or later, then you can use
/etc/apt/preferences. I don't know what to put to use the CDs, but look at
the man page for apt_preferences and I'd think Origin is what needs to be
used.

For a further alternative if preferences doesn't work out well and this is
something you run into a lot look at:

http://home.pages.de/~lufthans/unix/

You want the security, testing and unstable updater for debian. It's easy
enough to tweak one of those to become apt-cd.

Again, not certain how this would work with dselect, but once you've updated
appropriately you could use apt-get install packagename or apt-cd install
packagename.

ciao,

der.hans
-- 
# [EMAIL PROTECTED] home.pages.de/~lufthans/ www.DevelopOnline.com
#  When I work, I work hard. When I play, I play hard.
#  When I sit, I sleep. - Embe Kugler



apt-get/dselect problem

2001-05-15 Thread Christoph Blank
I am using unstable, and someone told me to run a dist-upgrade because of some 
problems i had.
I did a apt-get update and then upgrade first, but there were some unmet 
dependencies and
apt told me to run apt-get -f install. but if I do this I get a very weird 
error message, never saw that
before, and it seems that I can't correct it...
Maybe someone can help me, and please its important that you CC MESSAGE me a 
reply, to [EMAIL PROTECTED]
thanks very much



storm:/home/solars# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libtiff3g tk8.3
The following packages will be REMOVED:
  adduser at autoconf automake blt-dev dlint dpkg-dev dpkg-ftp dpkg-perl g++
  kernel-package libc6-dev libcupsys2 libdb2 libdb2-util libdb3 libldap2
  libltdl0-dev libncurses4-dev libnet-perl libnet-telnet-perl libnss-db
  libpam-modules libsasl-modules libsasl7 libstdc++2.10-dev
  libterm-slang-perl libterm-stool-perl libtool login logrotate mailx man-db
  mutt nmh passwd perl perl-5.005 pidentd ppp pppconfig proftpd samba-common
  sendmail shellutils smbclient smbfs ssh task-c++-dev task-c-dev
  task-devel-common task-tcltk-dev tcl8.2-dev tcl8.3-dev telnetd tk8.2-dev
  tktable-dev xlib6g-dev xlibs-dev xmh
The following NEW packages will be installed:
  libtiff3g tk8.3
The following held packages will be changed:
  libdb3 libpam-modules
WARNING: The following essential packages will be removed
This should NOT be done unless you know exactly what you are doing!
  libnss-db libdb2 (due to libnss-db) libdb2-util (due to libnss-db) login
  libpam-modules (due to login) shellutils
0 packages upgraded, 2 newly installed, 60 to remove and 81  not upgraded.
5 packages not fully installed or removed.
Need to get 0B/800kB of archives. After unpacking 69.0MB will be freed.
You are about to do something potentially harmful
To continue type in the phrase 'Yes, do as I say!'

--