Opening any link in gnome-terminal returns error

Asked by Leon Kaiser

Binary package hint: gnome-terminal

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/gnome-terminal
NonfreeKernelModules: nvidia
Package: gnome-terminal 2.24.1.1-0ubuntu1
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
Uname: Linux 2.6.27-11-generic x86_64

It started doing this a while ago (I can't say when), It returns the error:

Could not open the address "$link”:
Operation not supported

It's getting pretty annoying, and I can't seem to find a fix for this.

If I recall correctly, this may have happened due to opening a few large and very thoroughly URL-encoded links.

When I reproduce the error ~/.xsession-errors does not log it, so I doubt it's related to that.

[Just for reference, here's a screenshot of the error: http://img128.imageshack.us/img128/5193/gterm.png]

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Leon Kaiser (literalka) said :
#1
Revision history for this message
Pedro Villavicencio (pedro) said :
#2

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs.

Revision history for this message
Sam_ (and-sam) said :
#3

Do you want to browse the internet via Gnome-terminal?
https://help.ubuntu.com/community/GnomeTerminal

##no problems here, I've just copy&paste the url of this page
Examples:
w3m https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/67359

or:
wget https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/67359

##with wget the page will be saved into your /home/user as .html file, title is number 67359.

Revision history for this message
Leon Kaiser (literalka) said :
#4

No, I don't want to use Gnome-terminal to browse, I want the links to open with my web browser (Firefox).

Revision history for this message
Sam_ (and-sam) said :
#5

Ok, I've edited the question.
However to verify internet connection you may try the relevant url with w3m in a terminal.

You may also post the url which isn't available.

Please start Firefox in a terminal, reproduce your steps above to maybe get some error messages:
firefox

In case of filing a bug you may pass the output into a text file:
firefox --debug &> firefox-debug.txt

Please make sure that Ubuntu is updated.
Open Synaptic and reload packages list.
https://help.ubuntu.com/community/SynapticHowto

Please clear the cache in Firefox.
Edit -> preferences -> advanced

You may also check the file .xsession-errors (hidden in your /home/user), sometimes it contents also messages of failures in firefox.

Note:
http://kb.mozillazine.org/Error_loading_some_websites
http://kb.mozillazine.org/Standard_diagnostic

Revision history for this message
Leon Kaiser (literalka) said :
#6

First, this is for *every* url.
Second, this isn't a Firefox problem, this is a terminal problem, I've reproduced the error with other browsers.

Revision history for this message
Leon Kaiser (literalka) said :
#7

Ubuntu is updated, I keep it regularly updated.

Revision history for this message
Sam_ (and-sam) said :
#8

Please explain the relation between firefox and gnome-terminal, thanks.
What about w3m?
What about syslog?
Did you try removing profile, prefs in .mozilla?
Could it be a firewall issue?
Could it be a conflict with addons?

Can you provide any information on how to reproduce the issue?

In case please use Apport:
https://help.ubuntu.com/community/ReportingBugs
Why:
http://mdzlog.alcor.net/2009/03/31/please-dont-report-ubuntu-bugs-directly-to-launchpad/

Revision history for this message
Leon Kaiser (literalka) said :
#9

It isn't a Mozilla error, it is a gnome-terminal error, it is with opening links, gnome-terminal recognizes them, it just won't open them in *any* browser.

Revision history for this message
Steve (stupendoussteve-deactivatedaccount) said :
#10

Do you have Mozilla Firefox set as the browser in System>Preferences>Preferred Applications?

Revision history for this message
Leon Kaiser (literalka) said :
#11

Yes, I do.

Revision history for this message
Leon Kaiser (literalka) said :
#12

Though changing this still produces the same results.

Revision history for this message
Leon Kaiser (literalka) said :
#13

... Why is this a Firefox bug... I've reproduced the bug without firefox.

Revision history for this message
Jim J (morlockhq) said :
#14

Fou-Lu

I think there may just be some miscommunication here.

As I understand it, you want to be able to click links that appear in your terminal session and have them open the default browser (whichever is defined on the system, Firefox, Opera, Galeon, etc) to that link's destination. Is that correct?

I think your Preferred Applications settings may be broken.

Would you mind trying the following:

1. Open your Preferred Applications application (System -> Preferences -> Preferred Applications).

2. The in the Internet Tab of the Preferred Applications window, make sure that the Web Browser Section is set to "Open link with web browser default".

3. Click the Close button in the Preferred Applications window.

3. Now test it by opening a gnome-terminal (Applications -> Accessories -> Terminal).

4. Type http://www.ubuntu.com on the command line and hit Enter. You'll get an error message that says something like:

    bash: http://www.ubuntu.com: No such file or directory

5. The error's ok, we just want to use the link. Hover over the link and it should get an underline. However, if you click on it nothing should happen.

6. Now, while hovering over the link, hold down the CTRL key on your keyboard and click the link. That should open your browser to the Ubuntu homepage.

I hope that helps.

Please feel free to clarify any assumptions that I made and/or follow up with whether this was a successful solution or not. I would be happy to continue to troubleshoot this with you.

Revision history for this message
Leon Kaiser (literalka) said :
#15

Thanks.

Hmmm, still seem to be getting the same error.

Revision history for this message
Leon Kaiser (literalka) said :
#16

Added a screenshot of the error to the question.

Revision history for this message
Jim J (morlockhq) said :
#17

What do you get when you type:

gconftool --get /desktop/gnome/url-handlers/http/command

If you don't get:

firefox %s

Then try typing this:

gconftool --set /desktop/gnome/url-handlers/http/command "firefox %s"

Then try links in the terminal.

Revision history for this message
Leon Kaiser (literalka) said :
#18

Thanks for the reply,

I get `firefox %s'

Revision history for this message
Jeruvy (jeruvy) said :
#19

I see the same result as Fou-Lu

Testing this out via Jim J's example

$ http://www.ubuntu.com
bash: http://www.ubuntu.com: No such file of directory

Moving the mouse over this link underlines this text in either the original command or the response. I may right-click and 'copy link address' so it seems it's recognized correctly

But no amount of clicking on it, will open the link. I would expect firefox to open and fire up the link, it does not.

Revision history for this message
Leon Kaiser (literalka) said :
#20

Yeah, It seems to be recognized correctly.

Revision history for this message
Jim J (morlockhq) said :
#21

But when you hover over the link and it gets underlined, try holding down the CTRL key on your keyboard and then clicking the link with the mouse at the same time.

This is the only way that the link should open.

Revision history for this message
Leon Kaiser (literalka) said :
#22

I use CTRL-Click most of the time.

Revision history for this message
Sam_ (and-sam) said :
#23

### a link can be opened also via context menu with right click.
However, found this, but actually not sure if this regression has something to do with it.
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/326975

Revision history for this message
Leon Kaiser (literalka) said :
#24

Hmm, curious. But the error started occurring after I played around with *heavily* url-encoded links.

Revision history for this message
Leon Kaiser (literalka) said :
#25

Just tried a `file://' link, here's what I got.

Could not open the address “file:///home/literalka/Desktop/:”:
Error stating file '/home/literalka/Desktop/:': No such file or directory

Revision history for this message
Sam_ (and-sam) said :
#26

Hi,
any news on this issue?
If not, just an idea, not sure if it's related, did you check out:
cat .local/share/applications/mimeapps.list

You could give it a try and rename .local, or remove mimeapps.list, restart computer or do a:
sudo updatedb

Are you saving gnome-sessions? If yes, there should be a folder in your /home/user, what happens if you remove the contents?

Revision history for this message
Dragisa Krsmanovic (dragishak) said :
#27

Problem seems to be with links that have URL-encoded characters.

http://www.google.com or www.google.com works fine
http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjournal.pone.0006016
will give me previously mentioned error.

CTRL-Clicking on file:///path works and will open Nautilus.

Ubuntu 9.04 (Jaunty)

Revision history for this message
PGScooter (pgscooter) said :
#28

this affects me too and I have not found a solution. For me, the problem is with all urls.

Revision history for this message
PGScooter (pgscooter) said :
#29

this affects me too and I have not found a solution. For me, the problem is with all urls.

Can you help with this problem?

Provide an answer of your own, or ask Leon Kaiser for more information if necessary.

To post a message you must log in.