[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Getting the Debian Edu APT repositoriy working again



The Debian Edu APT repository stopped working (as in became impossible
to update) when the machine administrator.skolelinux.org was upgraded
from Lenny to Squeeze a while back.

Todays email from Moritz Molle make me even more tired of waiting
someone to fix the Debian Edu APT repositorory.  Thanks to the fact that
I am home sick today and had a bit spare time on my hands, I had a look
at the problem.  I'm not quite sure what the problem with dak is, nor
how to use dak, but one obvious problem showed up when I tried to look
at the problem:

administrator:~# /usr/bin/dak
Traceback (most recent call last):
  File "/usr/bin/dak.orig", line 32, in <module>
    import daklib.utils
ImportError: No module named daklib.utils

administrator:~# 

The dak script simply failing to start seem to be a complete blocker.  I
was unable to figure out why python did not have
/usr/lib/python2.6/site-packages in sys.path, but this change worked
around the problem:

administrator:~# diff -u /usr/bin/dak.orig /usr/bin/dak
--- /usr/bin/dak.orig   2012-10-30 13:45:00.000000000 +0100
+++ /usr/bin/dak        2012-10-30 13:43:34.000000000 +0100
@@ -29,6 +29,7 @@
 ################################################################################
 
 import sys
+sys.path.append('/usr/lib/python2.6/site-packages')
 import daklib.utils
 
 ################################################################################
administrator:~#

With this change in place, the dak command provide usage information, at
least.  Can one of the ftpmasters please check and see if dak work
better now?  How can I test if it is working?  If there still are
problems, let me know and I'll have a look today.  I doubt I will find
time after today.

administrator:~# /usr/bin/dak
/usr/lib/python2.6/site-packages/daklib/utils.py:1146: DeprecationWarning: apt_pkg.newConfiguration() is deprecated. Use apt_pkg.Configuration() instead.
  Cnf = apt_pkg.newConfiguration()
Usage: dak COMMAND [...]
Run DAK commands.  (Will also work if invoked as COMMAND.)

Availble commands:
  ls                      Show which suites packages are in
  override                Query/change the overrides
  check-archive           Archive sanity checks
  queue-report            Produce a report on NEW and BYHAND packages
  rm                      Remove packages from suites
  process-new             Process NEW and BYHAND packages
  process-unchecked       Process packages in queue/unchecked
  process-accepted        Install packages into the pool
  make-suite-file-list    Generate lists of packages per suite for apt-ftparchive
  generate-releases       Generate Release files
  generate-index-diffs    Generate .diff/Index files
  clean-suites            Clean unused/superseded packages from the archive
  clean-queues            Clean cruft from incoming
  clean-proposed-updates  Remove obsolete .changes from proposed-updates
  check-overrides         Override cruft checks
  check-proposed-updates  Dependency checking for proposed-updates
  compare-suites          Show fixable discrepencies between suites
  control-overrides       Manipulate/list override entries in bulk
  control-suite           Manipulate suites in bulk
  cruft-report            Check for obsolete or duplicated packages
  decode-dot-dak          Display contents of a .dak file
  examine-package         Show information useful for NEW processing
  find-null-maintainers   Check for users with no packages in the archive
  import-archive          Populate SQL database based from an archive tree
  import-keyring          Populate fingerprint/uid table based on a new/updated keyring
  import-ldap-fingerprints Syncs fingerprint and uid tables with Debian LDAP db
  import-users-from-passwd Sync PostgreSQL users with passwd file
  init-db                 Update the database to match the conf file
  init-dirs               Initial setup of the archive
  make-maintainers        Generates Maintainers file for BTS etc
  make-overrides          Generates override files
  mirror-split            Split the pool/ by architecture groups
  poolize                 Move packages from dists/ to pool/
  reject-proposed-updates Manually reject from proposed-updates
  security-install        Install a security upload into the archive
  new-security-install    New way to install a security upload into the archive
  split-done              Split queue/done into a date-based hierarchy
  stats                   Generate statistics
  symlink-dists           Generate compatability symlinks from dists/ into pool/
administrator:~#

-- 
Happy hacking
Petter Reinholdtsen


Reply to: