Apakah anda juga pernah mengalami hal yang sama? mendapatkan message warning “The following packages cannot be authenticated” setiap kali menginstall program menggunakan apt-get 0.6.x ?
debian:~# apt-get install tcpflow
Reading package lists… Done
Building dependency tree… Done
Suggested packages:
tcpdump
The following NEW packages will be installed
tcpflow
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B/23.6kB of archives.
After unpacking 86.0kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
tcpflow
Install these packages without verification [y/N]?
Ini adalah normal, seperti keterangan “Jordi Mallach Pérez” salah satu developer debian.org disini
Pertanyaan yang akan muncul adalah, bagaimana supaya message itu tidak muncul kembali?
Jawabannya adalah dengan menambahkan APT::Get::AllowUnauthenticated “true”; pada apt.conf Anda.
debian:~# cat /etc/apt/apt.conf.d/70debconf
// Pre-configure all packages with debconf before they are installed.
// If you don’t like it, comment it out.
DPkg::Pre-Install-Pkgs {“/usr/sbin/dpkg-preconfigure –apt || true”;};
APT::Get::AllowUnauthenticated “true”;
kemudian cobalah menggunakan apt-get untuk menginstall program yang anda inginkan, insyaAllah message warning itu tidak akan muncul kembali.
debian:~# apt-get install tcpflow
Reading package lists… Done
Building dependency tree… Done
Suggested packages:
tcpdump
The following NEW packages will be installed
tcpflow
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B/23.6kB of archives.
After unpacking 86.0kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
tcpflow
Authentication warning overridden.
Selecting previously deselected package tcpflow.
(Reading database … 128821 files and directories currently installed.)
Unpacking tcpflow (from …/tcpflow_0.21-8_i386.deb) …
Setting up tcpflow (0.21-8) …
Good Luck 🙂