You are not logged in.

#1 2011-08-06 11:34:11

vandakiara
Member
From: Lisbon, Portugal
Registered: 2011-06-13
Posts: 20
Website

Problems extracting tar.gz and zip

Hi ^^

So, I'm running Arch and Openbox and I was going to install GTK2 themes when I noticed my tar.gz file wouldn't open - then I remembered I hadn't installed p7zip and so I did - still no luck... I even rebooted the computer, but still no luck...

Then I thought, maybe I needed to determine which application would unzip files and I tried to use mime to do it for me.. So I typed in the terminal

mimeopen -d ~/Downloads/Dust-0.4.tar.gz

and this is what was returned:

No applications found for mimetype: application/x-compressed-tar

I've also tried with zip files I had lying around but the same thing happens, except the error is:

No applications found for mimetype: application/zip

... I don't know what else to do, I've had Openbox and Arch for a few months now and I never had this problem.. And then my HDD died, I reinstalled Arch and OB and this is happening... I probably forgot something, but if you could help..

^^ thanks in advance


~ Believing oneself to be perfect is often the sign of a delusional mind ~

Offline

#2 2011-08-06 11:36:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problems extracting tar.gz and zip

Offline

#3 2011-08-06 11:52:47

vandakiara
Member
From: Lisbon, Portugal
Registered: 2011-06-13
Posts: 20
Website

Re: Problems extracting tar.gz and zip

Thanks for the article, I also tried their method with xdg-mime however it didn't work either...

See, first I typed this in the terminal:

xdg-mime query filetype ~/Downloads/Dust-0.4.tar.gz

so I'd know the filetype... and it returned:

application/x-gzip; charset=binary

.. So far so good, right..?

Then I tried to make p7zip the default app for this...

xdg-mime default p7zip application/x-gzip

Apparently I needed to ask .desktop after the app, so I did

xdg-mime default p7zip.desktop application/x-gzip

and... this is what I've got now:

/usr/bin/xdg-mime: line 664: /home/vandakiara/.local/share/applications/defaults.list.new: No such file or directory
grep: /home/vandakiara/.local/share/applications/defaults.list.new: No such file or directory
/usr/bin/xdg-mime: line 666: /home/vandakiara/.local/share/applications/defaults.list.new: No such file or directory
/usr/bin/xdg-mime: line 668: /home/vandakiara/.local/share/applications/defaults.list.new: No such file or directory
mv: impossível analisar «/home/vandakiara/.local/share/applications/defaults.list.new»: No such file or directory

..... any ideas? Btw, my problem isn't really working with mime - I've set default apps for stuff a bunch of times... My real problem is being unable to extract compressed files, that's all...


~ Believing oneself to be perfect is often the sign of a delusional mind ~

Offline

#4 2011-08-06 12:02:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problems extracting tar.gz and zip

Can you do it from the command line?

Offline

#5 2011-08-06 12:55:12

vandakiara
Member
From: Lisbon, Portugal
Registered: 2011-06-13
Posts: 20
Website

Re: Problems extracting tar.gz and zip

karol wrote:

Can you do it from the command line?

how so? :s


~ Believing oneself to be perfect is often the sign of a delusional mind ~

Offline

#6 2011-08-06 13:05:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problems extracting tar.gz and zip

Let's try

tar xfz Dust-0.4.tar.gz

Offline

#7 2011-08-06 13:31:35

vandakiara
Member
From: Lisbon, Portugal
Registered: 2011-06-13
Posts: 20
Website

Re: Problems extracting tar.gz and zip

karol wrote:

Let's try

tar xfz Dust-0.4.tar.gz

ok copied your code exactly and this was the result

tar (child): Dust-0.4.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Then I tried the path to the Dust file instead of only the name of it, but nothing happened... :s


~ Believing oneself to be perfect is often the sign of a delusional mind ~

Offline

#8 2011-08-06 13:35:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problems extracting tar.gz and zip

What do you mean "nothing happened"? Are the files / folder extracted?

Create a folder, go to the folder and run the command with the full path again.

[karol@black ~]$ mkdir foo
[karol@black ~]$ cd foo
[karol@black foo]$ tar xfz ~/Downloads/Dust-0.4.tar.gz

Now post the output of 'ls'.

Last edited by karol (2011-08-06 13:41:16)

Offline

#9 2011-08-06 13:52:36

vandakiara
Member
From: Lisbon, Portugal
Registered: 2011-06-13
Posts: 20
Website

Re: Problems extracting tar.gz and zip

karol wrote:

What do you mean "nothing happened"? Are the files / folder extracted?

Create a folder, go to the folder and run the command with the full path again.

[karol@black ~]$ mkdir foo
[karol@black ~]$ cd foo
[karol@black foo]$ tar xfz ~/Downloads/Dust-0.4.tar.gz

Now post the output of 'ls'.


sorry my bad - something did happen, just didn't show in the command line.. after you asked if the files were extracted, I checked my home folder and indeed, they are. Thanks, you're a life saver ^^

So... do I have to do this everytime I want to extract something? :s surely there must be an easier way to do this.. (right? :s)


~ Believing oneself to be perfect is often the sign of a delusional mind ~

Offline

#10 2011-08-06 13:57:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problems extracting tar.gz and zip

vandakiara wrote:

So... do I have to do this everytime I want to extract something? :s surely there must be an easier way to do this.. (right? :s)

https://wiki.archlinux.org/index.php/Co … es#extract
For it to work you need to have a bunch of apps installed: unzip, cabextract etc.
There probably is an even simpler way and there surely is a GUI way too, but I don't use them, so you need to ask somebody else tongue

Offline

#11 2011-08-06 14:01:32

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: Problems extracting tar.gz and zip

@vandakiara you're funny.
I would recommend you install GUI archiving tools such as xarchiver and file-roller. For a command-line frontend, try atool. But really, you should always be aware what backend is being used to extract an archive. Have you ever heard of zip bomb?

Last edited by lolilolicon (2011-08-06 14:06:01)


This silver ladybug at line 28...

Offline

#12 2011-08-06 14:02:39

vandakiara
Member
From: Lisbon, Portugal
Registered: 2011-06-13
Posts: 20
Website

Re: Problems extracting tar.gz and zip

karol wrote:
vandakiara wrote:

So... do I have to do this everytime I want to extract something? :s surely there must be an easier way to do this.. (right? :s)

https://wiki.archlinux.org/index.php/Co … es#extract
For it to work you need to have a bunch of apps installed: unzip, cabextract etc.
There probably is an even simpler way and there surely is a GUI way too, but I don't use them, so you need to ask somebody else tongue

oh okay I'll check it out, thanks anyway, you really helped ^^

so, new question - does anyone know how to double click a compressed file and automatically install it like it happens in p7zip?


~ Believing oneself to be perfect is often the sign of a delusional mind ~

Offline

#13 2011-08-06 14:07:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problems extracting tar.gz and zip

In case you missed lolilolicon's post, try Xarchiver or file-roller.

BTW, p7zip is a small console app, so I don't think you can double-click anything there.

Last edited by karol (2011-08-06 14:08:40)

Offline

#14 2011-08-06 14:46:09

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: Problems extracting tar.gz and zip

karol wrote:

In case you missed lolilolicon's post, try Xarchiver or file-roller.

BTW, p7zip is a small console app, so I don't think you can double-click anything there.

I think he/she was talking about 7zFM or p7zipForFilemanager or something... but double-click triggering console apps is just fine, you know, like in a file manager.

Last edited by lolilolicon (2011-08-06 14:49:07)


This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB