When i update i get warning

Hello, i freshly installed Ubuntu 24.04 LTS but when i update i get this warning.

N: Ignoring file ‘ubuntu.sources.curtin.orig’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension

Ubuntu Version:
24.04LTS,

Did you navigate to the /etc/apt/sources.list.d directory. Try removing the .orig extension from that file.

1 Like

@osas Welcome to Ubuntu Discourse :slight_smile:

In all likelihood, this was a file that was left over from the installation and is harmless.

However, let’s do a quick check to make sure there are no other surprises:
ls -l /etc/apt/sources.list /etc/apt/sources.list.d/*

Post the output and wrap with code tags when replying (highlight the text and click on the </> icon in the composer).

Thanks

By the way, in this case N is simply notifying of something and should not prevent you from updating.

If you ever see E (error) or W (warning), now that is another matter entirely.

I understand but why this leftover only happens on my pc, i have other system installed ubuntu 24.04 LTS and none of them have this leftover file.

ls -l /etc/apt/sources.list /etc/apt/sources.list.d/*
-rw-r–r-- 1 root root 70 Oca 12 23:21 /etc/apt/sources.list
-rw-r–r-- 1 root root 202 Oca 12 23:26 /etc/apt/sources.list.d/ubuntu-esm-apps.sources
-rw-r–r-- 1 root root 206 Oca 12 23:26 /etc/apt/sources.list.d/ubuntu-esm-infra.sources
-rw-r–r-- 1 root root 383 Oca 12 23:11 /etc/apt/sources.list.d/ubuntu.sources
-rw-r–r-- 1 root root 2552 Ağu 5 19:54 /etc/apt/sources.list.d/ubuntu.sources.curtin.orig

Good question and unfortunately I do not have a good answer.

I tried some test 24.04 installs in a VM and was not able to replicate this behaviour.

But, let’s get it fixed for you by removing that unneeded file and updating:

sudo rm /etc/apt/sources.list.d/ubuntu.sources.curtin.orig
sudo apt update

Please report back if this worked or if there are still issues.

Thank you for helping it worked.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.