Ignoring 99weakkey-warning file in /etc/apt/apt.conf.d

I have this message N: Ignoring file '99weakkey-warning.save.1 in directory 'etc/apt/apt.conf.d' nothing is working

2 Likes

Hi, @Terry_Clemons and welcome to the Ubuntu MATE Community!

you should have just one file named 99weakkey-warning

its contents should be:
APT::Key::Assert-Pubkey-Algo ">=rsa1024";

1 Like

I tried that did not work
]

ignoring file '99weakkey-warning.save.1' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension site

the filename should not have a .save.1

it should be just 99weakkey-warning

2 Likes

how do I fix this error to make it run properly

cd /etc/apt/apt.conf.d

sudo mv 99weakkey-warning.save.1 99weakkey-warning

#edit 99weakkey-warning with the editor you use and add the line I posted

if you use nano, sudo nano 99weakkey-warning
1 Like

mv cannot stat '99weakkey-warning.save.1 no such file or directory

cd /etc/apt/apt.conf.d
ls -1 *

paste the output

1 Like

looks like:

01autoremove
01-vendor-ubuntu
10periodic
15update-stamp
20apt-esm-hook.conf
20archive
20auto-upgrades
20dbus
20packagekit
20snapd.conf
50appstream
50command-not-found
50unattended-upgrades
60icons
60icons-hidpi
70debconf
99update-notifier
99weakkey-warning
1 Like

mine does not look like that sorry

I get a message that says bash: cd: /etc/apt.conf.d: no such file or directory

The directory is /etc/apt/apt.conf.d

1 Like

my response on the computer says bash: /etc/apt/apt.conf.d: Is a directory now what it acts like its waiting for a new command

1408.glabels mintupgrade-2025-01-09T172347.log
99weakkey-warning mintupgrade-2025-02-24T111807.log
build mintupgrade-2025-02-24T112051.log
chicken4994.glabels Music
chicken.glabels mx.glabels
Desktop 'network passwords.glabels'
Documents notes.glabels
Downloads Pictures
'FSD Number.glabels' Public
google-chrome-stable_current_amd64.deb Templates
GREG.glabels 'TV ABELS.glabels'
INPUT.glabels Videos
mintupgrade-2025-01-09T155327.log
terry@terry-Lenovo-C365:~$

finally found it sorry
here it is

00aptitude
00cdrom
00mint
00trustcdrom
01autoremove
01-vendor-ubuntu
20aptkit
20dbus
20packagekit
20snapd.conf
50appstream
50command-not-found
70debconf
90mintsystem
99synaptic
99weakkey-warning.save
99weakkey-warning.save.1

your 1st methods worked the ignore message is gone

1 Like

if you still have this file, delete it

sudo rm /etc/apt/apt.conf.d/99weakkey-warning.save

Analysis: It seems you edited that file with nano, you got out of nano and nano created a 99weakkey-warning.save (backup) Then, you edited the file again and nano created another backup, 99weakkey-warning.save.1 (.1 indicates a duplicate of the file). So, make sure that dir has only one 99weakkey-warning file.

HTH

2 Likes

Some advice: I would say that whatever was done in /etc/apt/apt.conf.d - it was not done by someone that knew enough about the configuration; I would investigate the configuration (apt-config dump) and compare it to the results from a Live Session (or a VM) - just to make sure that any changes haven't broken your package management tool.

1 Like

I don't see the need for this file at all. The warnings are there for a reason; and could flag that a repository (in particular, a PPA) is not being correctly configured and maintained. PPAs are a matter of trust, and I like to know that they're being managed correctly by a responsible maintainer.

1 Like