بسم الله

Bismillah

Setelah beberapa hari gak pakai jaringan isp c, dan paket data pun nyari yang murah. Akhirnya pakai indosat. Disayangkan, beberapa server repository buat update, gak dikenali sama jaringan mereka. Solusi ? pasang proxy.

Error messages

masari@localroot:~$ sudo apt update
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease
Hit:3 http://dl.google.com/linux/earth/deb stable InRelease    
Hit:4 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Hit:5 https://packages.microsoft.com/repos/ms-teams stable InRelease 
Hit:6 http://packages.elementary.io/appcenter bionic InRelease 
Hit:7 https://dl.yarnpkg.com/debian stable InRelease   
Hit:8 https://deb.opera.com/opera-stable stable InRelease
Hit:9 http://security.ubuntu.com/ubuntu bionic-security InRelease    
Hit:10 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease 
Hit:11 https://linux.teamviewer.com/deb stable InRelease 
Hit:12 http://nginx.org/packages/ubuntu bionic InRelease 
Hit:13 https://deb.nodesource.com/node_15.x bionic InRelease   
Hit:14 https://nginx.org/packages/mainline/ubuntu bionic InRelease   
Hit:15 http://id.archive.ubuntu.com/ubuntu bionic InRelease 
Hit:16 https://packages.nginx.org/unit/ubuntu bionic InRelease  
Hit:17 http://id.archive.ubuntu.com/ubuntu bionic-updates InRelease     
Hit:18 http://id.archive.ubuntu.com/ubuntu bionic-backports InRelease   
Err:19 http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/ubuntu bionic InRelease 
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable) Could not connect to ppa.launchpad.net:80 (91.189.95.85), connection timed out
Err:20 http://ppa.launchpad.net/elementary-os/stable/ubuntu bionic InRelease
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
Err:21 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic InRelease
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
Err:22 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu bionic InRelease
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
Err:23 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu bionic InRelease
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
Err:24 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
Err:25 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu bionic InRelease
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
Err:26 http://ppa.launchpad.net/elementary-os/os-patches/ubuntu bionic InRelease
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
Err:27 http://ppa.launchpad.net/peek-developers/stable/ubuntu bionic InRelease
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
Err:28 http://ppa.launchpad.net/philip.scott/elementary-tweaks/ubuntu bionic InRelease
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
Err:29 http://ppa.launchpad.net/serge-rider/dbeaver-ce/ubuntu bionic InRelease
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
Reading package lists... Done
Building dependency tree 
Reading state information... Done
55 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable) Could not connect to ppa.launchpad.net:80 (91.189.95.85), connection timed out
W: Failed to fetch http://ppa.launchpad.net/elementary-os/stable/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
W: Failed to fetch http://ppa.launchpad.net/gezakovacs/ppa/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
W: Failed to fetch http://ppa.launchpad.net/inkscape.dev/stable/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
W: Failed to fetch http://ppa.launchpad.net/obsproject/obs-studio/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
W: Failed to fetch http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
W: Failed to fetch http://ppa.launchpad.net/elementary-os/os-patches/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
W: Failed to fetch http://ppa.launchpad.net/peek-developers/stable/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
W: Failed to fetch http://ppa.launchpad.net/philip.scott/elementary-tweaks/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
W: Failed to fetch http://ppa.launchpad.net/serge-rider/dbeaver-ce/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)
W: Some index files failed to download. They have been ignored, or old ones used instead.
masari@localroot:~$ 

Konfigurasi apt proxy

Buat file dengan nama proxy.conf

sudo touch /etc/apt/apt.conf.d/proxy.conf

Buka file yg telah dibuat dengan editor, disini saya pakai nano

sudo nano /etc/apt/apt.conf.d/proxy.conf

Isi file dengan baris perintah seperti berikut

Acquire {
    HTTP::proxy "http://127.0.0.1:8080";
    HTTPS::proxy "http://127.0.0.1:8080";
}

Alamat IP 127.0.0.1 port 8080 bisa diganti sesuai dengan alamat proxy yang mau dipakai. Buat nyari daftarnya ada di link referensi dibagian paling bawah.

Bisa dicoba pakai ini

IP AddressPortProtocolAnonymityCountry
140.227.65.1596000HTTPSHigh AnonymousUnited States
47.241.17.898888HTTPAnonymousCanada
109.254.64.1439090HTTPHigh AnonymousUkraine
190.108.200.1768080HTTPSNoneGuyana

Simpan dan jalankan apt update / apt upgrade

sudo apt update && sudo apt upgrade -y

Hasilnya ?

masari@localroot:~$ sudo nano /etc/apt/apt.conf.d/proxy.conf
masari@localroot:~$ sudo apt update
...     
Hit:20 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic InRelease
Get:21 http://id.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:22 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu bionic InRelease
Hit:23 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu bionic InRelease
Hit:24 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit:25 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu bionic InRelease
Hit:26 http://ppa.launchpad.net/elementary-os/os-patches/ubuntu bionic InRelease
Hit:27 http://ppa.launchpad.net/peek-developers/stable/ubuntu bionic InRelease
Hit:28 http://ppa.launchpad.net/philip.scott/elementary-tweaks/ubuntu bionic InRelease
Get:29 http://packages.elementary.io/appcenter bionic/main amd64 DEP-11 Metadata [301 kB]
Hit:30 http://ppa.launchpad.net/serge-rider/dbeaver-ce/ubuntu bionic InRelease
Fetched 559 kB in 8s (68.9 kB/s)     
Reading package lists... Done
Building dependency tree 
Reading state information... Done
55 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-headers-5.4.0-80-generic linux-hwe-5.4-headers-5.4.0-80 linux-image-5.4.0-80-generic linux-modules-5.4.0-80-generic linux-modules-extra-5.4.0-80-generic
The following packages will be upgraded:
  appstream-data-pantheon appstream-data-pantheon-icons appstream-data-pantheon-icons-hidpi aspell containerd curl docker.io elementary-wallpapers google-chrome-stable
...
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-80-generic
Found initrd image: /boot/initrd.img-5.4.0-80-generic
done
Processing triggers for initramfs-tools (0.130ubuntu3.13) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-80-generic
I: The initramfs will attempt to resume from /dev/sda3
I: (UUID=b9433541-3cd2-4d22-b0c0-7bd896f079ff)
I: Set the RESUME variable to override this.
masari@localroot:~$ 

Selesai!

الحمد لله

Linked Refrences: