Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
107
rated 0 times [  107] [ 0]  / answers: 1 / hits: 321999  / 3 Years ago, tue, july 27, 2021, 5:46:24

All of the key-servers I visit are timing out. I need to install packages without checking the signatures of the public keys. Is there a way to bypass all the signature checks/ignore all of the signature errors or fool apt into thinking the signature passed?


I am very well aware it is dangerous to do this


More From » apt

 Answers
7

Pass the --allow-unauthenticated option to apt-get as in:



sudo apt-get --allow-unauthenticated upgrade


From tha manual page of apt-get:




--allow-unauthenticated

Ignore if packages can't be authenticated and don't prompt about it. This is useful for tools like pbuilder. Configuration Item:
APT::Get::AllowUnauthenticated.




You can make this setting permanent by using your own config file at /etc/apt/apt.conf.d/ dir. The filename can be 99myown and it may contain this line:



APT::Get::AllowUnauthenticated "true";


In this way, you don't need to use the option every time you want to install software. Note: I do not recommend setting this option by default, it bypasses signature checks that could allow an adversary to compromise your computer.


[#42389] Wednesday, July 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cocal

Total Points: 236
Total Questions: 111
Total Answers: 123

Location: Belarus
Member since Tue, Mar 14, 2023
1 Year ago
cocal questions
Tue, Oct 12, 21, 20:46, 3 Years ago
Sat, Oct 8, 22, 04:23, 2 Years ago
Wed, Sep 14, 22, 22:38, 2 Years ago
Sun, Dec 18, 22, 02:24, 1 Year ago
Wed, Jun 29, 22, 17:31, 2 Years ago
;