Comments (12)
In this case, you will have to fetch the latest version like that (inside a terminal) :
cd ~ && wget https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb && sudo dpkg -i ./duf_0.8.1_linux_amd64.deb
Hope it help...
bigbob@LAPTOP-AUTOMOTIVE:~$ cd ~ && wget https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb && sudo dpkg -i ./duf_0.8.1_linux_amd64.deb
--2023-09-09 10:24:47-- https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/297165998/a2dd3a92-9b83-491e-ae7b-4c7de6e97c5b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230909%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230909T082448Z&X-Amz-Expires=300&X-Amz-Signature=fbfbf70da8d6dec9e3986e8be0174bde37dd17009acae434740dd90661368751&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=297165998&response-content-disposition=attachment%3B%20filename%3Dduf_0.8.1_linux_amd64.deb&response-content-type=application%2Foctet-stream [following]
--2023-09-09 10:24:48-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/297165998/a2dd3a92-9b83-491e-ae7b-4c7de6e97c5b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230909%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230909T082448Z&X-Amz-Expires=300&X-Amz-Signature=fbfbf70da8d6dec9e3986e8be0174bde37dd17009acae434740dd90661368751&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=297165998&response-content-disposition=attachment%3B%20filename%3Dduf_0.8.1_linux_amd64.deb&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 917644 (896K) [application/octet-stream]
Saving to: �duf_0.8.1_linux_amd64.deb�
duf_0.8.1_linux_amd64.deb 100%[=================================================>] 896.14K 1011KB/s in 0.9s
2023-09-09 10:24:49 (1011 KB/s) - �duf_0.8.1_linux_amd64.deb� saved [917644/917644]
Selecting previously unselected package duf.
(Reading database ... 45159 files and directories currently installed.)
Preparing to unpack ./duf_0.8.1_linux_amd64.deb ...
Unpacking duf (0.8.1) ...
Setting up duf (0.8.1) ...
bigbob@LAPTOP-AUTOMOTIVE:~$ duf
?----------------------------------------------------------------------------------------------------?
¦ 5 local devices ¦
+----------------------------------------------------------------------------------------------------¦
¦ MOUNTED ON ¦ SIZE ¦ USED ¦ AVAIL ¦ USE% ¦ TYPE ¦ FILESYSTEM ¦
+---------------------+--------+--------+--------+-------------------------------+------+------------¦
¦ / ¦ 251.0G ¦ 1.9G ¦ 236.3G ¦ [....................] 0.8% ¦ ext4 ¦ /dev/sdb ¦
¦ /init ¦ 462.1G ¦ 385.0G ¦ 77.1G ¦ [################....] 83.3% ¦ 9p ¦ tools ¦
¦ /mnt/c ¦ 462.1G ¦ 385.0G ¦ 77.1G ¦ [################....] 83.3% ¦ 9p ¦ C:\ ¦
¦ /usr/lib/wsl/driver ¦ 462.1G ¦ 385.0G ¦ 77.1G ¦ [################....] 83.3% ¦ 9p ¦ drivers ¦
¦ s ¦ ¦ ¦ ¦ ¦ ¦ ¦
¦ /usr/lib/wsl/lib ¦ 462.1G ¦ 385.0G ¦ 77.1G ¦ [################....] 83.3% ¦ 9p ¦ lib ¦
?----------------------------------------------------------------------------------------------------?
?----------------------------------------------------------------------------------------------?
¦ 7 special devices ¦
+----------------------------------------------------------------------------------------------¦
¦ MOUNTED ON ¦ SIZE ¦ USED ¦ AVAIL ¦ USE% ¦ TYPE ¦ FILESYSTEM ¦
+----------------+------+------+-------+-------------------------------+----------+------------¦
¦ /dev ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ devtmpfs ¦ none ¦
¦ /mnt/wsl ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ tmpfs ¦ tmpfs ¦
¦ /run ¦ 3.1G ¦ 8.0K ¦ 3.1G ¦ [....................] 0.0% ¦ tmpfs ¦ none ¦
¦ /run/lock ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ tmpfs ¦ none ¦
¦ /run/shm ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ tmpfs ¦ none ¦
¦ /run/user ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ tmpfs ¦ none ¦
¦ /sys/fs/cgroup ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ tmpfs ¦ tmpfs ¦
?----------------------------------------------------------------------------------------------?
bigbob@LAPTOP-AUTOMOTIVE:~$
Follow new instructions to install the last version !!!
from duf.
In this case, you will have to fetch the latest version like that (inside a terminal) :
cd ~ && wget https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb && sudo dpkg -i ./duf_0.8.1_linux_amd64.debHope it help...
bigbob@LAPTOP-AUTOMOTIVE:~$ cd ~ && wget https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb && sudo dpkg -i ./duf_0.8.1_linux_amd64.deb --2023-09-09 10:24:47-- https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb Resolving github.com (github.com)... 140.82.121.3 Connecting to github.com (github.com)|140.82.121.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/297165998/a2dd3a92-9b83-491e-ae7b-4c7de6e97c5b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230909%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230909T082448Z&X-Amz-Expires=300&X-Amz-Signature=fbfbf70da8d6dec9e3986e8be0174bde37dd17009acae434740dd90661368751&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=297165998&response-content-disposition=attachment%3B%20filename%3Dduf_0.8.1_linux_amd64.deb&response-content-type=application%2Foctet-stream [following] --2023-09-09 10:24:48-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/297165998/a2dd3a92-9b83-491e-ae7b-4c7de6e97c5b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230909%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230909T082448Z&X-Amz-Expires=300&X-Amz-Signature=fbfbf70da8d6dec9e3986e8be0174bde37dd17009acae434740dd90661368751&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=297165998&response-content-disposition=attachment%3B%20filename%3Dduf_0.8.1_linux_amd64.deb&response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.109.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 917644 (896K) [application/octet-stream] Saving to: �duf_0.8.1_linux_amd64.deb� duf_0.8.1_linux_amd64.deb 100%[=================================================>] 896.14K 1011KB/s in 0.9s 2023-09-09 10:24:49 (1011 KB/s) - �duf_0.8.1_linux_amd64.deb� saved [917644/917644] Selecting previously unselected package duf. (Reading database ... 45159 files and directories currently installed.) Preparing to unpack ./duf_0.8.1_linux_amd64.deb ... Unpacking duf (0.8.1) ... Setting up duf (0.8.1) ... bigbob@LAPTOP-AUTOMOTIVE:~$ duf ?----------------------------------------------------------------------------------------------------? ¦ 5 local devices ¦ +----------------------------------------------------------------------------------------------------¦ ¦ MOUNTED ON ¦ SIZE ¦ USED ¦ AVAIL ¦ USE% ¦ TYPE ¦ FILESYSTEM ¦ +---------------------+--------+--------+--------+-------------------------------+------+------------¦ ¦ / ¦ 251.0G ¦ 1.9G ¦ 236.3G ¦ [....................] 0.8% ¦ ext4 ¦ /dev/sdb ¦ ¦ /init ¦ 462.1G ¦ 385.0G ¦ 77.1G ¦ [################....] 83.3% ¦ 9p ¦ tools ¦ ¦ /mnt/c ¦ 462.1G ¦ 385.0G ¦ 77.1G ¦ [################....] 83.3% ¦ 9p ¦ C:\ ¦ ¦ /usr/lib/wsl/driver ¦ 462.1G ¦ 385.0G ¦ 77.1G ¦ [################....] 83.3% ¦ 9p ¦ drivers ¦ ¦ s ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ /usr/lib/wsl/lib ¦ 462.1G ¦ 385.0G ¦ 77.1G ¦ [################....] 83.3% ¦ 9p ¦ lib ¦ ?----------------------------------------------------------------------------------------------------? ?----------------------------------------------------------------------------------------------? ¦ 7 special devices ¦ +----------------------------------------------------------------------------------------------¦ ¦ MOUNTED ON ¦ SIZE ¦ USED ¦ AVAIL ¦ USE% ¦ TYPE ¦ FILESYSTEM ¦ +----------------+------+------+-------+-------------------------------+----------+------------¦ ¦ /dev ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ devtmpfs ¦ none ¦ ¦ /mnt/wsl ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ tmpfs ¦ tmpfs ¦ ¦ /run ¦ 3.1G ¦ 8.0K ¦ 3.1G ¦ [....................] 0.0% ¦ tmpfs ¦ none ¦ ¦ /run/lock ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ tmpfs ¦ none ¦ ¦ /run/shm ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ tmpfs ¦ none ¦ ¦ /run/user ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ tmpfs ¦ none ¦ ¦ /sys/fs/cgroup ¦ 3.1G ¦ 0B ¦ 3.1G ¦ ¦ tmpfs ¦ tmpfs ¦ ?----------------------------------------------------------------------------------------------? bigbob@LAPTOP-AUTOMOTIVE:~$
Follow new instructions to install the last version !!!
Sorry for the late answer. This worked perfectly.
from duf.
What is the version of your Ubuntu WFS2 ?
from duf.
It's Ubuntu 20.04
from duf.
Jup, I ran into the same mistake. Also, WSL - Debian 12.
./duf
panic: runtime error: index out of range [11] with length 11
goroutine 1 [running]:
main.parseMountInfoLine({0xc0000c4000?, 0x0?})
/home/mrcl/git/duf/mounts_linux.go:165 +0x279
main.mounts()
/home/mrcl/git/duf/mounts_linux.go:61 +0x158
main.main()
/home/mrcl/git/duf/main.go:166 +0x1c5
from duf.
sudo dpkg -i ./duf_0.8.1_linux_amd64.deb
again me..
(Reading database ... 51504 files and directories currently installed.)
Preparing to unpack ./duf_0.8.1_linux_amd64.deb ...
Unpacking duf (0.8.1) over (0.8.1) ...
Setting up duf (0.8.1) ...
mrcl@Debian:~/DL$ duf
panic: runtime error: index out of range [11] with length 11
goroutine 1 [running]:
main.parseMountInfoLine({0xc00016a000, 0x0})
github.com/muesli/duf/mounts_linux.go:165 +0x299
main.mounts()
github.com/muesli/duf/mounts_linux.go:61 +0x17e
main.main()
github.com/muesli/duf/main.go:166 +0x1d1
I run more or less into the same error
from duf.
Can you post output of :
dpkg -l | grep golang | grep -v "\-dev"
from duf.
Nope, sorry.
dpkg -l | grep golang | grep -v "\-dev"
mrcl@Debian:~$ echo $?
1
from duf.
Please do :
sudo apt update && sudo apt dist-upgrade
Then recheck « duf »...
from duf.
I do not want to be arrogant, but this is the first command for me, if something is wrong :)
But for you I will do it :)
sudo apt update && sudo apt dist-upgrade -y
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://ftp.debian.org/debian bookworm-backports InRelease
Hit:4 https://packages.microsoft.com/repos/edge stable InRelease
Hit:5 http://deb.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libjq1 libonig5
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
from duf.
I just don't understand why it doesn't run properly at your side...
bigbob@LAPTOP-AUTOMOTIVE:~$ duf --version
duf 0.8.1 (3c55411)
bigbob@LAPTOP-AUTOMOTIVE:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
bigbob@LAPTOP-AUTOMOTIVE:~$
from duf.
I have also Ubuntu 22.04 on same windows machine and it also work :
bigbob@LAPTOP-AUTOMOTIVE:~$ duf --version
duf 0.8.1 (3c55411)
bigbob@LAPTOP-AUTOMOTIVE:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
bigbob@LAPTOP-AUTOMOTIVE:~$
from duf.
Related Issues (20)
- Manpage is wrong with the OPTIONS hyphenation HOT 1
- detect and ignore unmounted systemd automount.
- Feature request: Option to omit the graph in USE%
- duf is extremely slow compared to dfrs HOT 2
- Mount point filters not working in macOS 13.4 HOT 1
- tmux not recognized as interactive terminal (no color) HOT 2
- `--theme` ignored with CLICOLOR_FORCE=1
- Inconsistent sizes for NFS
- duf reports human units incorrectly on macOS
- Why is there this difference in the values shown for the used disk space between df and duf ?
- Incorrect usage of terminal size results in unnecessary wrapping
- Hard Links & APFS Clones Support
- Very slow compared to df HOT 3
- macOS – Does not hide “/System/Volumes” Mount Points HOT 4
- [Feature] Allow user to reorder column view
- Add option to hide device count
- `duf -warnings` report `/run/user/1000/doc: operation not permitted`
- debian version not printed HOT 1
- Fixed Size Unit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duf.