Giter Club home page Giter Club logo

Comments (12)

Creteil avatar Creteil commented on August 22, 2024 1

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.

manfred0191 avatar manfred0191 commented on August 22, 2024 1

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 !!!

Sorry for the late answer. This worked perfectly.

from duf.

Creteil avatar Creteil commented on August 22, 2024

What is the version of your Ubuntu WFS2 ?

from duf.

manfred0191 avatar manfred0191 commented on August 22, 2024

It's Ubuntu 20.04

from duf.

l-33ter avatar l-33ter commented on August 22, 2024

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.

l-33ter avatar l-33ter commented on August 22, 2024
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.

Creteil avatar Creteil commented on August 22, 2024

Can you post output of :

dpkg -l | grep golang | grep -v "\-dev"

from duf.

l-33ter avatar l-33ter commented on August 22, 2024

Nope, sorry.

dpkg -l | grep golang | grep -v "\-dev"
mrcl@Debian:~$ echo $?
1

from duf.

Creteil avatar Creteil commented on August 22, 2024

Please do :

sudo apt update && sudo apt dist-upgrade

Then recheck « duf »...

from duf.

l-33ter avatar l-33ter commented on August 22, 2024

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.

Creteil avatar Creteil commented on August 22, 2024

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.

Creteil avatar Creteil commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.