بسم الله

Bismillah

Ada sedikit kejadian yang sebenarnya tidak masalah sih, cuma sedikit mengganggu dan bikin panik kalau tidak pernah menemukan pesan di terminal seperti ini.

masari@localroot:~$ sudo apt update
Hit:1 http://kartolo.sby.datautama.net.id/debian bullseye InRelease
Hit:2 http://kartolo.sby.datautama.net.id/debian bullseye-updates InRelease                                  
Hit:3 http://packages.microsoft.com/repos/code stable InRelease                                              
Hit:4 http://kartolo.sby.datautama.net.id/debian-security bullseye-security InRelease                        
Hit:5 https://deb.nodesource.com/node_18.x bullseye InRelease                                                
Hit:6 https://deb.opera.com/opera-stable stable InRelease                                                    
Hit:7 https://packages.sury.org/php bullseye InRelease                                                       
Hit:8 https://packages.microsoft.com/repos/edge stable InRelease                                             
Hit:9 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease                                        
Get:11 https://dlm.mariadb.com/repo/mariadb-server/10.7/repo/debian bullseye InRelease [4,637 B]             
Hit:12 http://security.debian.org/debian-security bullseye-security InRelease                                
Get:13 https://nginx.org/packages/debian bullseye InRelease [2,866 B]
Get:14 https://dlm.mariadb.com/repo/maxscale/latest/apt bullseye InRelease [9,353 B]
Hit:10 https://downloads.mariadb.com/Tools/debian bullseye InRelease
Fetched 16.9 kB in 4s (4,775 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'nginx/binary-i386/Packages' as repository 'https://nginx.org/packages/debian bullseye InRelease' doesn't support architecture 'i386'
masari@localroot:~$ 

Kali ini saya menemukan notice ketika update system linux (saya menggunakan ubuntu debian), kalau source apt package di postgresql dan juga nging nginx (baca: engine-x) tidak didukung untuk arsitektur cpu i386 atau 32bit. Artinya hanya ada dan tersedia paket repositori di 64 bit (amd64).

Notice ini kadang mengganggu bagi saya, meskipun sebenarnya tidak mengapa jika kita biarkan saja. Karena itu hanya notifikasi / pengingat kalau paket yang kamu minta gak tersedia di arsitektur i386 / 32 bit.

Baik langsung saja kita hilangkan notifikasinya.

Open terminal

Maksudnya buka terminal console, selanjutnya edit file source list postgresql dan nginx. Tambahkan [arch=amd64] pada masing-masing source list repository.

Repository PostgreSQL

sudo nano /etc/apt/sources.list.d/pgsql.list
deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main

Repository Nginx

sudo nano /etc/apt/sources.list.d/nginx.list
deb [arch=amd64] https://nginx.org/packages/debian/ bullseye nginx
deb-src [arch=amd64] https://nginx.org/packages/debian/ bullseye nginx

Simpan dan exit editor

Update

sudo apt update

Jika berhasil maka notice N: Skipping acquire of configured file ... akan hilang.

masari@localroot:~$ sudo apt update
Hit:1 http://kartolo.sby.datautama.net.id/debian bullseye InRelease
Hit:2 http://kartolo.sby.datautama.net.id/debian bullseye-updates InRelease                                                                           
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease                                                                          
Hit:4 http://kartolo.sby.datautama.net.id/debian-security bullseye-security InRelease                                                                 
Hit:5 https://deb.opera.com/opera-stable stable InRelease                                                                                             
Hit:6 http://packages.microsoft.com/repos/code stable InRelease                                                                                       
Hit:7 https://packages.microsoft.com/repos/edge stable InRelease                                                                                      
Hit:8 https://packages.sury.org/php bullseye InRelease                                                                                                
Hit:9 https://deb.nodesource.com/node_18.x bullseye InRelease                                                                                         
Get:11 https://dlm.mariadb.com/repo/mariadb-server/10.7/repo/debian bullseye InRelease [4,637 B]             
Get:12 https://dlm.mariadb.com/repo/maxscale/latest/apt bullseye InRelease [9,353 B]                                  
Get:13 https://nginx.org/packages/debian bullseye InRelease [2,866 B]                                                 
Hit:10 https://downloads.mariadb.com/Tools/debian bullseye InRelease
Hit:14 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease
Fetched 16.9 kB in 4s (4,111 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
masari@localroot:~$

Jika masih error bisa kita diskusikan, periksa apakah source list repository sudah benar penulisannya. Jika ada kesulitan silahkan kontak saya di Telegram.

الحمد لله

Linked Refrences: