2

After upgrading a couple VMs to Debian 12, I started having the following warning after running an apt update command:

N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'

Whilst this question is similar to How do I install non-free firmware in Debian 12 (Bookworm)?, it is not the same.

I don't use non-free firmware in my VM, how to get rid of the warning message without adding the non-free-firmware repository?

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227

2 Answers2

1

Following loosely Debian instructions, create a /etc/apt/apt.conf.d/no-firmware.conf file, with the following content:

APT::Get::Update::SourceListWarnings::NonFreeFirmware "false";
Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
0

I don't use non-free firmware in my VM

But for the general audiences that get such warning and would like to get rid of it, disabling non-free-firmware may work for VM but may not be good for our laptops (e.g., for firmware-iwlwifi).

Per release notes,

To ensure installed non-free firmware packages receive proper upgrades, changes to the APT configuration are required.

For most people, it'll be something like this:

deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
xpt
  • 1,182
  • 2
  • 13
  • 32
  • You are technically right, however that is the obvious part where the message disappears per the error message displayed *in English* by Debian. The point of the question was how to find out how to get rid of that pesky message *when you dont really need non-free-firmware* – Rui F Ribeiro Jun 15 '23 at 17:09
  • Totally understand, that why I emphasized that my answer is _"for the general audiences"_, on the question of _"how to remove apt warning in Debian 12"_, just _as titled_. And I emphasized _again in the end_ that my answer is _"for most people"_ to solve the problem as titled. – xpt Jun 16 '23 at 03:04