0

I am getting this message from Archive Manager when trying to open a text file:

Could not open “users.js”
Archive type not supported.

I've tried different archive managers but not one works!

List of application I have in my machine to extract:

  1. Archive Mounter
  2. Xarchier (just downloaded but not working)
  3. Archive Manager (default one)

This is the output of file users.js -> users.js: ASCII text, with CRLF line terminators

Zanna
  • 69,223
  • 56
  • 216
  • 327
Mohsin
  • 29
  • 8
  • 2
    Just from preference or is there a practical reason for doing so? – graham Jun 26 '18 at 06:37
  • @Graham after doing extract zip folder.... when I clicking to open files it showing `could not open users.js Archive not supported` – Mohsin Jun 26 '18 at 06:42
  • @Melebius I just edit my question please remove that duplicate link thanks melebius – Mohsin Jun 26 '18 at 07:36
  • 1
    Thank you for the edit. Generally a `.js` file should be a [text file containing JavaScript code](https://fileinfo.com/extension/js) rather than an archive. Could you add the output of the command `file users.js` to your question? (You’ll need to fill its correct path; you can also drag the file into the terminal window to fill the path automatically.) You could also open it in a text editor (like Gedit) and check if it is readable. – Melebius Jun 26 '18 at 07:54
  • @Melebius I just edit my question and paste the output of user.js file. It is readable in for text-edit software like sublime – Mohsin Jun 26 '18 at 09:05
  • @Melebius but in 16.04 I never get such error. even .js also opens smoothly in achieve manager – Mohsin Jun 26 '18 at 09:17
  • 1
    What does archive manager in 16.04 do with a `.js` file? My Xubuntu 16.04 opens a text editor (Mousepad) when I double-click a `.js` file. – Melebius Jun 26 '18 at 11:34
  • In 16.04 without extracting .zip I can open any file in text editor. I also do double click and its open ! – Mohsin Jun 26 '18 at 11:52
  • Possible duplicate of [How to roll back Ubuntu to a previous version?](https://askubuntu.com/questions/49869/how-to-roll-back-ubuntu-to-a-previous-version) – waltinator Jun 27 '18 at 15:46
  • @waltinator please read my question first then say it is duplicate... I already edit my question some days ago – Mohsin Jun 27 '18 at 15:54
  • CRLF line terminators? Windows line endings! See [this question](https://askubuntu.com/questions/803162/how-to-change-windows-line-ending-to-unix-version) for example. – Zanna Jun 28 '18 at 16:16

1 Answers1

1

Archive manager programs are not designed to open plain text files.

It seems there is a bug somewhere with file associations that I've also encountered in Ubuntu 20.04 where the system defaults to opening .js files with archive-manager

wesinat0r
  • 121
  • 1
  • 8