Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I click on a apt:// link in Chromium Ubuntu Software Center handles the link. How can I change it to gdebi/apturl?

share|improve this question
Refer this and this – atenz Jul 6 '12 at 12:09

Gdebi doesn't have functionality of opening apt: links, however apturl does.There is a way to set default application for x-scheme-handler links with xdg-mime command.

First make sure apturl is installed on your system,

sudo apt-get install apturl

Latest version of chromium already uses xdg-open for any x-scheme-handler links.To configure xdg-open with apturl , go through following steps:

Make sure they are all set correctly:

  • Hit Alt+F2
  • Enter gconf-editor
  • Navigate to the /desktop/gnome/url-handlers/apt/command, it should be set to apturl "%s".

enter image description here

Now set apturl default for any apt links:

xdg-mime default apturl.desktop x-scheme-handler/apt

It will set apturl as default application for apt links.You can check it by running xdg-mime query default x-scheme-handler/apt in the terminal(output would be apturl.desktop)

Now whenever you click apt in chromium, it will use apturl.

enter image description here


share|improve this answer
How do I do this programmatically? – Nordlöw Feb 4 '14 at 22:30
What do you men by "programmatically" ? – Khurshid Alam Feb 5 '14 at 14:43
I mean change gconf values programmatically from the shell. Then I can script the change so I don't have to change this by hand using gconf-editor every time I install Ubuntu on a new computer. The command dconf can do just that. However I don't know if all the keys in gconf and dconf are named the samed way. – Nordlöw Feb 5 '14 at 20:44
Since natty it does not depend on gconf-value (gconf depreciated, dconf is used now). Instead it uses apturl.desktop in /usr/share/application which is there by default. open it in gedit. Make sure exec part read like this: Exec=apturl %u. Then proceed as described above. – Khurshid Alam Feb 5 '14 at 21:01
You can change dconf/gconf settings using gconftool-2 or gsettings. For example, for dconf its something like : gsettings set com.canonical.indicator.session show-real-name-on-panel false.… – Khurshid Alam Feb 5 '14 at 21:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.