--- /usr/lib/univention-system-setup/scripts/05_role/10role.old 2015-04-30 02:08:51.204177000 -0400 +++ /usr/lib/univention-system-setup/scripts/05_role/10role 2015-04-30 02:08:56.900177000 -0400 @@ -32,6 +32,7 @@ # . import shutil import glob +import os from univention.management.console.modules.setup.setup_script import AptScript, main, _ @@ -51,7 +52,11 @@ # Copy local files into the local cache # https://forge.univention.org/bugzilla/show_bug.cgi?id=27935 for filename in glob.glob('/var/cache/univention-system-setup/packages/*.deb'): - shutil.copy(filename, '/var/cache/apt/archives/') + try: + basename = os.path.basename(filename) + os.link(filename, os.path.join('/var/cache/apt/archives/', basename)) + except OSError: + shutil.copy(filename, '/var/cache/apt/archives/') self.reopen_cache() current_server_role_package = self.get_package_for_role(self.current_server_role) if self.current_server_role else None