ในการรับ BleachBit เวอร์ชันล่าสุด (สำหรับ Ubuntu 20.04) เราสามารถใช้คำสั่งต่อไปนี้:
wget -c https://download.bleachbit.org/bleachbit_4.4.0-0_all_ubuntu2004.deb -O bleachbit.deb
dpkg -i bleachbit.deb
หากเราติดตั้งจากที่เก็บ Ubuntu อย่างเป็นทางการ (ด้วย ฉลาดรับ bleachbit
) มีการติดตั้งเวอร์ชันเก่าซึ่งมีข้อผิดพลาดในการติดตั้ง และ ตามที่ผู้สร้างเครื่องมือนี้:
Ubuntu มีนโยบาย "ไม่มีการเผยแพร่" ดังนั้นพื้นที่เก็บข้อมูลของ Ubuntu จะไม่อัปเดตด้วยเวอร์ชันล่าสุด
เนื่องจากเครื่องมือนี้มีการอัปเดตเป็นประจำ ฉันจึงต้องการดาวน์โหลดเวอร์ชันล่าสุดเสมอ ดังนั้นฉันจึงทุบตีนี้ แต่มันไม่ทำงาน:
lastbleachbit=$(wget -O - https://www.bleachbit.org/download/ | grep -Po '/download/file/([^"]+)' | grep ubuntu2004 | sort -u)
wget -c https://www.bleachbit.org"$lastbleachbit" -O bleachbit.deb
dpkg -i bleachbit.deb
ตัวแปรเอาต์พุต:
lastmintstick=$(wget -O - http://packages.linuxmint.com/pool/main/m/mintstick/ | grep -Po 'href=".*?"' | sed -r 's:href\=" (.*)":\1:' | grep ".deb" | sort | หาง -1)
--2021-11-10 10:24:50-- http://packages.linuxmint.com/pool/main/m/mintstick/
แก้ไข package.linuxmint.com (packages.linuxmint.com)... 208.77.20.11, 68.235.39.11
เชื่อมต่อกับ package.linuxmint.com (packages.linuxmint.com)[208.77.20.11]:80... เชื่อมต่อ
Petición HTTP enviada, esperando respuesta... 200 ตกลง
ความยาว: 10112 (9,9K) [text/html]
Guardando como: âSTDOUTâ
- 100%[===================>] 9,88K --.-KB/s ใน 0 วินาที
2021-11-10 10:24:51 (191 MB/s) - ขยายเป็นมาตรฐาน [10112/10112]
คำสั่งเอาท์พุท:
wget -c https://www.bleachbit.org"$lastbleachbit"
--2021-11-10 10:26:39-- https://www.bleachbit.org/
แก้ไข www.bleachbit.org (www.bleachbit.org)... 172.67.129.101, 104.21.1.137, 2606:4700:3030::ac43:8165, ...
เชื่อมต่อกับ www.bleachbit.org (www.bleachbit.org)[172.67.129.101]:443... เชื่อมต่อ
Petición HTTP enviada, esperando respuesta... 200 ตกลง
ความยาว: ไม่มีคำอธิบายเฉพาะ [text/html]
Guardando como: âindex.htmlâ
index.html [ <=> ] 10,93K --.-KB/s และ 0,002 วินาที
2021-11-10 10:26:40 (4,38 MB/s) - âindex.htmlâ การ์ดาโด [11193]
ฉันทำอะไรผิด?