Error when upgrading from 4.4-9 to 5.0 (No such file or directory 20_ucs-online-component.list)

Hello guys!

I ran into a problem today when upgrading ucs from 4.4-9 to 5.0. I followed the upgrade via the logs and it stuck at getting something from the update server. After 15 minutes i cancelled the upgrade and found nothing. After the sign-in at the website i got this error:

Error contacting the update server. Please check your proxy or firewall settings, if any. Or it may be a problem with your configured DNS server. This is the error message: [Errno 2] No such file or directory: '/etc/apt/sources.list.d/20_ucs-online-component.list'
Request: status

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/updater/", line 491, in status
    result['serial'] = self._serial_file.timestamp()
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/updater/", line 130, in timestamp
    st = stat(self._file)
OSError: [Errno 2] No such file or directory: '/etc/apt/sources.list.d/20_ucs-online-component.list'

Doesn’t univention update their source list itself when i run the upgrade ?

How can i fix this ?

I would say just create the file and then execute

ucr commit /etc/apt/sources.list.d/20_ucs-online-component.list

It exists. But when i run the upgrade it does an backup file (moves the old one and renames it) from the actual one but does not create the new one for the current version.

Hmm, maybe it expects a specific UCR setting.
What does ucr get repository/online say?

ucr get repository/online

I suggest to read the code in /usr/lib/python2.7/dist-packages/univention/management/console/modules/updater/
This should give you at least a hint on what’s going on. Also pay attention to pre/post scripts which may responsible for backing up the old file.

Btw, these are my setting. Attention: I’ve activated the unmaintained repo.
Maybe you can spot other differences in yours.

# ucr search --brief repository/online
repository/online/component/.*/clean: <empty>
repository/online/component/.*/defaultpackages?: <empty>
repository/online/component/.*/description: <empty>
repository/online/component/.*/layout: <empty>
repository/online/component/.*/localmirror: <empty>
repository/online/component/.*/password: <empty>
repository/online/component/.*/port: <empty>
repository/online/component/.*/prefix: <empty>
repository/online/component/.*/server: <empty>
repository/online/component/.*/unmaintained: <empty>
repository/online/component/.*/username: <empty>
repository/online/component/.*/version: <empty>
repository/online/component/.*: <empty>
repository/online/httpmethod: HEAD
repository/online/port: 80
repository/online/prefix: <empty>
repository/online/sources: no
repository/online/timeout: 30
repository/online/unmaintained: on
repository/online/verify: yes
repository/online: yes


It get’s stucked here. I tried to ping “” and it is unable to resolve the hostname. But why? everything worked before and updating too. Its just the upgrade that’s having problems

You cannot ping https://…
Just ping the hostname ping
And i don’t think that DNS has anything to do with the problem.

Ah yea my stupidity :smiley:

Problem still exists and is not fixed


does it return the webpage data?

if yes… try again & leave it alone for a few hours until it returns a real error you can debug.
that error above , you caused by cancelling it.


        <link rel="shortcut icon" href="/favicon.ico">
        <link href="/css/downloads.css" rel="stylesheet" type="text/css" charset="utf-8"/>
        <!--[if IE]>
                <link type="text/css" rel="stylesheet" href="/css/ie.css" />

<!-- Layout -->
<div id="wrapper">
<!-- Header -->
                <div id="header">
                        <div id="icons">
                                <a href="" title="Contact" id="icon-01">Contact</a>
                                <a href="" title="Community" id="icon-02">Community</a>
                                <a href="" title="Support" id="icon-03">Support</a>
                        <a id="logo" href="">Univention</a>
                        <br class="clear" />
<!-- Content -->
                <div id="content">
   <tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
   <tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="3.0/">3.0/</a>                                              </td><td align="right">2013-11-27 17:17  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="3.1/">3.1/</a>                                              </td><td align="right">2015-01-09 10:52  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="3.2/">3.2/</a>                                              </td><td align="right">2017-01-23 16:59  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="3.3/">3.3/</a>                                              </td><td align="right">2017-02-20 12:59  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="4.0/">4.0/</a>                                              </td><td align="right">2015-07-31 14:54  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="4.1/">4.1/</a>                                              </td><td align="right">2015-11-17 10:41  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="4.2/">4.2/</a>                                              </td><td align="right">2017-04-04 15:25  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="4.3/">4.3/</a>                                              </td><td align="right">2020-07-29 16:04  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="4.4/">4.4/</a>                                              </td><td align="right">2023-03-01 15:21  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="5.0/">5.0/</a>                                              </td><td align="right">2021-06-09 18:42  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="dists/">dists/</a>                                            </td><td align="right">2023-02-08 20:02  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="download/">download/</a>                                         </td><td align="right">2023-02-08 17:24  </td><td align="right">  - </td><td>Download of CD/DVD/Virtual machine images</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="html/">html/</a>                                             </td><td align="right">2021-12-21 17:50  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="pool/">pool/</a>                                             </td><td align="right">2021-05-25 14:07  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="pxe/">pxe/</a>                                              </td><td align="right">2023-02-08 14:23  </td><td align="right">  - </td><td>Network installation</td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[   ]"></td><td><a href="ucs-releases.json">ucs-releases.json</a>                                 </td><td align="right">2023-04-12 13:13  </td><td align="right">843 </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/spicons/signature.png" alt="[   ]"></td><td><a href="univention-archive-key-ucs-3x.gpg">univention-archive-key-ucs-3x.gpg</a>                 </td><td align="right">2017-07-17 11:21  </td><td align="right">1.7K</td><td>Pretty Good Privacy signature</td></tr>
<tr><td valign="top"><img src="/spicons/signature.png" alt="[   ]"></td><td><a href="univention-archive-key-ucs-4x.gpg">univention-archive-key-ucs-4x.gpg</a>                 </td><td align="right">2017-07-17 11:21  </td><td align="right">2.2K</td><td>Pretty Good Privacy signature</td></tr>
<tr><td valign="top"><img src="/spicons/signature.png" alt="[   ]"></td><td><a href="univention-archive-key-ucs-5x.gpg">univention-archive-key-ucs-5x.gpg</a>                 </td><td align="right">2020-05-08 18:26  </td><td align="right">1.2K</td><td>Pretty Good Privacy signature</td></tr>
<tr><td valign="top"><img src="/icons/text.png" alt="[   ]"></td><td><a href="univention-archive-key-ucs-5x.gpg.sha512">univention-archive-key-ucs-5x.gpg.sha512</a>          </td><td align="right">2021-06-28 15:54  </td><td align="right">187 </td><td>Pretty Good Privacy signature</td></tr>
   <tr><th colspan="5"><hr></th></tr>
<pre>Univention GmbH, (c) Univention GmbH 2010-2023</pre>
<!-- Piwik --> 
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "" : "");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 12);
piwikTracker.addDownloadExtensions( "iso|sh" );
} catch( err ) {}
</script><noscript><p><img src="" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->

I has nothing to do with DNS or the Updateserver itself.
You already pointed out, that the source.list is gone after starting the update and the error message is clear

[Errno 2] No such file or directory: '/etc/apt/sources.list.d/20_ucs-online-component.list'

Hence check the update code, look for the removal/rename and why it’s not re-created.
Something must prevent it from re-creating the file.

So after like 3h of running the upgrade it just stucks at “Starting univention-upgrade. Current UCS version is 4.4-9 errata1371” and nothing happens.

Here is the pastebin of the whole upgrade process and where it is still stuck (its still running)

Well. I found the problem. I found out in another post that there was an cdrom entry in the source.list that waited for the cd to get inserted but there is no log entry for this waiting. when i commented this out from the source.list the upgrade is running through!