Why I got such message,The following packages cannot be authenticated?

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 🙂

Share it now...
Share on Facebook0Tweet about this on TwitterEmail this to someoneShare on Google+0
The following two tabs change content below.
Unix/Linux enthusiasts, good working experience with SAN, NAS, Linux, Solaris, AIX, VMWare & Graphic Design. Certified for Solaris Admin, EMC & HDS Storage.

One thought on “Why I got such message,The following packages cannot be authenticated?

  1. paijo says:

    menurut saya, mengubah menjadi true
    DPkg::Pre-Install-Pkgs {“/usr/sbin/dpkg-preconfigure –apt || true”;};
    APT::Get::AllowUnauthenticated “true”;
    bukan cara yang bijak..karena memperbolehkan installasi dari sumber “yang belum tentu dipercaya”…

    di http://wiki.debian.org/SecureApt kayaknya ada petunjuknya..
    salam..

Leave a Reply

Your email address will not be published. Required fields are marked *