diff -rwub apt-0.5.27.orig/apt-pkg/deb/debsystem.cc apt-0.5.27/apt-pkg/deb/debsystem.cc
--- apt-pkg/deb/debsystem.cc	Fri Dec 10 19:25:25 2004
+++ apt-pkg/deb/debsystem.cc	Fri Dec 10 19:40:03 2004
@@ -28,7 +28,7 @@
 #include <errno.h>
 									/*}}}*/
 
-debSystem debSys;
+debSystem *debSys;
 
 // System::debSystem - Constructor					/*{{{*/
 // ---------------------------------------------------------------------
diff -rwub apt-0.5.27.orig/apt-pkg/deb/debsystem.h apt-0.5.27/apt-pkg/deb/debsystem.h
--- apt-pkg/deb/debsystem.h	Fri Dec 10 19:25:25 2004
+++ apt-pkg/deb/debsystem.h	Fri Dec 10 19:39:57 2004
@@ -42,6 +42,6 @@
    ~debSystem();
 };
 
-extern debSystem debSys;
+extern debSystem *debSys;
 
 #endif
diff -rwub apt-0.5.27.orig/apt-pkg/init.cc apt-0.5.27/apt-pkg/init.cc
--- apt-pkg/init.cc	Fri Dec 10 19:25:25 2004
+++ apt-pkg/init.cc	Fri Dec 10 19:40:03 2004
@@ -11,6 +11,7 @@
 #include <apt-pkg/init.h>
 #include <apt-pkg/fileutl.h>
 #include <apt-pkg/error.h>
+#include <apt-pkg/debsystem.h>
 
 #include <apti18n.h>
 #include <config.h>
@@ -111,6 +105,7 @@
 bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys)
 {
    Sys = 0;
+   debSys = new debSystem;
    string Label = Cnf.Find("Apt::System","");
    if (Label.empty() == false)
    {
