[Solved] WARNING - Configuration file /etc/apt/sources.list ETC

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.10 (stable).
How are you able to access your server: The webadmin
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

I get a warning

Share relevant logs or error messages

I recieve this warning
What do I have to do ?

=================================
System configurations (regenconf)

[WARNING] Configuration file /etc/apt/sources.list.d/extra_php_version.list appears to have been manually modified.

  • This is probably OK if you know what you’re doing! YunoHost will stop updating this file automatically… But beware that YunoHost upgrades could contain important recommended changes. If you want to, you can inspect the differences with ‘yunohost tools regen-conf apt --dry-run --with-diff’ and force the reset to the recommended configuration with ‘yunohost tools regen-conf apt --force’

Hi Veehem,

It tells you what you may do. Where do you get stuck?

Sorry but it’s not clear (This is probably OK if you know what you’re doing! I don’t) , specially because I’m not use to work outside the admin panel
I didn’t manually modified anything.

That is why we have a forum! All, or at least most, of us at some point are not sure what we are doing. The benefit of not knowing what you are doing with computers is that it mostly does not cost lives if you make a mistake.

In such cases we go to the forum to ask for help. But many readers of the posts on this forum are not clearvoyant, nor do they have backdoor access to everyone’s servers. That is why it is helpful to give information about the situation, for example by posting the output of:

When you post that output, don’t forget to put three backticks (`) on the line above it, and on the line under it, so that it is formatted in a readable way!

Thank you @wbk

sudo yunohost tools regen-conf apt --dry-run --with-diff’
[sudo] password for admin: 
usage: yunohost {tools} ...
                [-h] [--output-as {json,plain,none}] [--debug] [--quiet]
                [--version] [--timeout ==SUPPRESS==]
yunohost: error: unrecognized arguments: --with-diff’

So far, so good for SSH :wink:

Try the same command, without the ’ at the end (computers are terribly picky about those things).

If I run your version (with ') and the ‘correct’ version (without ’ at the end), the difference is :

wbk@ynh:~$ sudo yunohost tools regen-conf apt --dry-run --with-diff’
[sudo] password for boudewijn: 
usage: yunohost {tools} ... [-h] [--output-as {json,plain,none}] [--debug] [--quiet] [--version] [--timeout ==SUPPRESS==]
yunohost: error: unrecognized arguments: --with-diff’

wbk@ynh:~$ sudo yunohost tools regen-conf apt --dry-run --with-diff

wbk@ynh:~$ 

(my apt has no differences, so there is no output here. I expect some lines of output on your side)

Tanks !

udo yunohost tools regen-conf apt --dry-run --with-diff
[sudo] password for admin: 
Warning: The configuration file '/etc/apt/sources.list.d/extra_php_version.list' has been manually modified and will not be updated
apt: 
  applied: 
  pending: 
    /etc/apt/sources.list.d/extra_php_version.list: 
      diff: @@ -1 +1 @@
-deb https://packages.sury.org/php/ bookworm main
+deb [signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg] https://packages.sury.org/php/ bookworm main
      status: modified

As you may know, apt is the underlying system for installing and removing packages/programs/apps.

If you look at both lines behind -deb and +deb , you see that both have https://packages.sury.org/php/ bookworm main. That is where (some of the) packages are downloaded from.

The difference is that the new version (with +) has a bit extra: [signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg]. It tells apt how to verify the software is not changed.

On my (recently installed) system it has this bit extra as well. With cat I can display it without making a change:

wbk@ynh:~$ cat /etc/apt/sources.list.d/extra_php_version.list 
deb [signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg] https://packages.sury.org/php/ bookworm main

To change the file, the easiest way is to do as the warning in the diagnostics proposes: run sudo yunohost tools regen-conf apt --force

Thank you @wbk
I don’t really understand this Chinese :wink:, but I trust you :ok_hand:

sudo yunohost tools regen-conf apt --force
[sudo] password for admin: 
Success! Configuration updated for 'apt'
apt: 
  applied: 
    /etc/apt/sources.list.d/extra_php_version.list: 
      status: force-updated
  pending: 

And now when I do

sudo yunohost tools regen-conf apt --dry-run --with-diff

There is no message. I guess it’ repair and that I may put solved?

Congratulations!

One more thing to do before you can mark it solved: run diagnosis to verify that the warning does not pop up anymore :slight_smile:

Thanks again @wbk for your support. The diagnostic via admin panel Is OK

1 Like