How to install gtk+2.0












17














When I enter the command



sudo apt-get install gtk+2.0


I get Output is like this:




Reading state information... Done
Note, selecting 'gir1.2-spice-client-gtk-2.0' for regex 'gtk+-2.0'
Note, selecting 'gir1.2-gtk-2.0' for regex 'gtk+-2.0'
Note, selecting 'libspice-client-gtk-2.0-dev' for regex 'gtk+-2.0'
Note, selecting 'libspice-client-gtk-2.0-1' for regex 'gtk+-2.0'
Note, selecting 'gir1.0-gtk-2.0' for regex 'gtk+-2.0'
gir1.2-gtk-2.0 is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libspice-client-gtk-2.0-dev : Depends: libgtk2.0-dev (>= 2.18.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


I am new to Ubuntu what I have to do?










share|improve this question




















  • 3




    I don't think there is a package named gtk+2.0 - what package are you trying to install, exactly, and why? (unfortunately apt-get insists on treating package names as regexes when it doesn't find an exact match)
    – steeldriver
    Apr 30 '16 at 17:52










  • I have to install a software named lamps for data analysis purpose. For it installation they need The graphics environment gtk+ (example: gtk+-1.2.10-33). so what i have to do
    – vinay krishna
    Apr 30 '16 at 17:57












  • If you have Ubuntu, you already have a GTK-based graphic environment.
    – dadexix86
    Apr 30 '16 at 18:02










  • but when i am make my software they showing gcc -g pkg-config --cflags gtk+-2.0 -c -o ascii2d.o ascii2d.c Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found ascii2d.c:1:21: fatal error: gtk/gtk.h: No such file or directory compilation terminated. make: *** [ascii2d.o] Error 1 so what i am supposed to do
    – vinay krishna
    Apr 30 '16 at 18:11








  • 5




    If you're trying to build software that requires gtk+-2.0 then the package you should install is called libgtk2.0-dev. Make sure you run sudo apt-get update first to make sure the package catalog is up to date.
    – steeldriver
    Apr 30 '16 at 18:15
















17














When I enter the command



sudo apt-get install gtk+2.0


I get Output is like this:




Reading state information... Done
Note, selecting 'gir1.2-spice-client-gtk-2.0' for regex 'gtk+-2.0'
Note, selecting 'gir1.2-gtk-2.0' for regex 'gtk+-2.0'
Note, selecting 'libspice-client-gtk-2.0-dev' for regex 'gtk+-2.0'
Note, selecting 'libspice-client-gtk-2.0-1' for regex 'gtk+-2.0'
Note, selecting 'gir1.0-gtk-2.0' for regex 'gtk+-2.0'
gir1.2-gtk-2.0 is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libspice-client-gtk-2.0-dev : Depends: libgtk2.0-dev (>= 2.18.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


I am new to Ubuntu what I have to do?










share|improve this question




















  • 3




    I don't think there is a package named gtk+2.0 - what package are you trying to install, exactly, and why? (unfortunately apt-get insists on treating package names as regexes when it doesn't find an exact match)
    – steeldriver
    Apr 30 '16 at 17:52










  • I have to install a software named lamps for data analysis purpose. For it installation they need The graphics environment gtk+ (example: gtk+-1.2.10-33). so what i have to do
    – vinay krishna
    Apr 30 '16 at 17:57












  • If you have Ubuntu, you already have a GTK-based graphic environment.
    – dadexix86
    Apr 30 '16 at 18:02










  • but when i am make my software they showing gcc -g pkg-config --cflags gtk+-2.0 -c -o ascii2d.o ascii2d.c Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found ascii2d.c:1:21: fatal error: gtk/gtk.h: No such file or directory compilation terminated. make: *** [ascii2d.o] Error 1 so what i am supposed to do
    – vinay krishna
    Apr 30 '16 at 18:11








  • 5




    If you're trying to build software that requires gtk+-2.0 then the package you should install is called libgtk2.0-dev. Make sure you run sudo apt-get update first to make sure the package catalog is up to date.
    – steeldriver
    Apr 30 '16 at 18:15














17












17








17


7





When I enter the command



sudo apt-get install gtk+2.0


I get Output is like this:




Reading state information... Done
Note, selecting 'gir1.2-spice-client-gtk-2.0' for regex 'gtk+-2.0'
Note, selecting 'gir1.2-gtk-2.0' for regex 'gtk+-2.0'
Note, selecting 'libspice-client-gtk-2.0-dev' for regex 'gtk+-2.0'
Note, selecting 'libspice-client-gtk-2.0-1' for regex 'gtk+-2.0'
Note, selecting 'gir1.0-gtk-2.0' for regex 'gtk+-2.0'
gir1.2-gtk-2.0 is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libspice-client-gtk-2.0-dev : Depends: libgtk2.0-dev (>= 2.18.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


I am new to Ubuntu what I have to do?










share|improve this question















When I enter the command



sudo apt-get install gtk+2.0


I get Output is like this:




Reading state information... Done
Note, selecting 'gir1.2-spice-client-gtk-2.0' for regex 'gtk+-2.0'
Note, selecting 'gir1.2-gtk-2.0' for regex 'gtk+-2.0'
Note, selecting 'libspice-client-gtk-2.0-dev' for regex 'gtk+-2.0'
Note, selecting 'libspice-client-gtk-2.0-1' for regex 'gtk+-2.0'
Note, selecting 'gir1.0-gtk-2.0' for regex 'gtk+-2.0'
gir1.2-gtk-2.0 is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libspice-client-gtk-2.0-dev : Depends: libgtk2.0-dev (>= 2.18.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


I am new to Ubuntu what I have to do?







14.04 gtk-2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '16 at 19:44









Tshilidzi Mudau

3,53831727




3,53831727










asked Apr 30 '16 at 17:29









vinay krishna

89115




89115








  • 3




    I don't think there is a package named gtk+2.0 - what package are you trying to install, exactly, and why? (unfortunately apt-get insists on treating package names as regexes when it doesn't find an exact match)
    – steeldriver
    Apr 30 '16 at 17:52










  • I have to install a software named lamps for data analysis purpose. For it installation they need The graphics environment gtk+ (example: gtk+-1.2.10-33). so what i have to do
    – vinay krishna
    Apr 30 '16 at 17:57












  • If you have Ubuntu, you already have a GTK-based graphic environment.
    – dadexix86
    Apr 30 '16 at 18:02










  • but when i am make my software they showing gcc -g pkg-config --cflags gtk+-2.0 -c -o ascii2d.o ascii2d.c Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found ascii2d.c:1:21: fatal error: gtk/gtk.h: No such file or directory compilation terminated. make: *** [ascii2d.o] Error 1 so what i am supposed to do
    – vinay krishna
    Apr 30 '16 at 18:11








  • 5




    If you're trying to build software that requires gtk+-2.0 then the package you should install is called libgtk2.0-dev. Make sure you run sudo apt-get update first to make sure the package catalog is up to date.
    – steeldriver
    Apr 30 '16 at 18:15














  • 3




    I don't think there is a package named gtk+2.0 - what package are you trying to install, exactly, and why? (unfortunately apt-get insists on treating package names as regexes when it doesn't find an exact match)
    – steeldriver
    Apr 30 '16 at 17:52










  • I have to install a software named lamps for data analysis purpose. For it installation they need The graphics environment gtk+ (example: gtk+-1.2.10-33). so what i have to do
    – vinay krishna
    Apr 30 '16 at 17:57












  • If you have Ubuntu, you already have a GTK-based graphic environment.
    – dadexix86
    Apr 30 '16 at 18:02










  • but when i am make my software they showing gcc -g pkg-config --cflags gtk+-2.0 -c -o ascii2d.o ascii2d.c Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found ascii2d.c:1:21: fatal error: gtk/gtk.h: No such file or directory compilation terminated. make: *** [ascii2d.o] Error 1 so what i am supposed to do
    – vinay krishna
    Apr 30 '16 at 18:11








  • 5




    If you're trying to build software that requires gtk+-2.0 then the package you should install is called libgtk2.0-dev. Make sure you run sudo apt-get update first to make sure the package catalog is up to date.
    – steeldriver
    Apr 30 '16 at 18:15








3




3




I don't think there is a package named gtk+2.0 - what package are you trying to install, exactly, and why? (unfortunately apt-get insists on treating package names as regexes when it doesn't find an exact match)
– steeldriver
Apr 30 '16 at 17:52




I don't think there is a package named gtk+2.0 - what package are you trying to install, exactly, and why? (unfortunately apt-get insists on treating package names as regexes when it doesn't find an exact match)
– steeldriver
Apr 30 '16 at 17:52












I have to install a software named lamps for data analysis purpose. For it installation they need The graphics environment gtk+ (example: gtk+-1.2.10-33). so what i have to do
– vinay krishna
Apr 30 '16 at 17:57






I have to install a software named lamps for data analysis purpose. For it installation they need The graphics environment gtk+ (example: gtk+-1.2.10-33). so what i have to do
– vinay krishna
Apr 30 '16 at 17:57














If you have Ubuntu, you already have a GTK-based graphic environment.
– dadexix86
Apr 30 '16 at 18:02




If you have Ubuntu, you already have a GTK-based graphic environment.
– dadexix86
Apr 30 '16 at 18:02












but when i am make my software they showing gcc -g pkg-config --cflags gtk+-2.0 -c -o ascii2d.o ascii2d.c Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found ascii2d.c:1:21: fatal error: gtk/gtk.h: No such file or directory compilation terminated. make: *** [ascii2d.o] Error 1 so what i am supposed to do
– vinay krishna
Apr 30 '16 at 18:11






but when i am make my software they showing gcc -g pkg-config --cflags gtk+-2.0 -c -o ascii2d.o ascii2d.c Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found ascii2d.c:1:21: fatal error: gtk/gtk.h: No such file or directory compilation terminated. make: *** [ascii2d.o] Error 1 so what i am supposed to do
– vinay krishna
Apr 30 '16 at 18:11






5




5




If you're trying to build software that requires gtk+-2.0 then the package you should install is called libgtk2.0-dev. Make sure you run sudo apt-get update first to make sure the package catalog is up to date.
– steeldriver
Apr 30 '16 at 18:15




If you're trying to build software that requires gtk+-2.0 then the package you should install is called libgtk2.0-dev. Make sure you run sudo apt-get update first to make sure the package catalog is up to date.
– steeldriver
Apr 30 '16 at 18:15










2 Answers
2






active

oldest

votes


















24














The right command is:



sudo apt-get install gtk2.0





share|improve this answer































    15














    First you need gtk2 and the command for that is



    sudo apt-get install gtk2.0


    chances are that its already installed.



    Then you need the development package libgtk2.0-dev and this can be installed by the command:



    sudo apt-get install build-essential libgtk2.0-dev


    Best regards and good luck with LAMPS



    Ambar Chatterjee






    share|improve this answer























    • I tried to install gtk2.0 in Ubuntu-bash (Windows 10) I got following error after running the first comment. Errors were encountered while processing: libpython3.5-minimal:amd64 python3.5-minimal libpython3.5-stdlib:amd64 python3.5 libpython3.5:amd64 libpython3.5-dev:amd64 libpython3-dev:amd64 python3.5-dev python3-dev python3-pip python3-setuptools python3-wheel E: Sub-process /usr/bin/dpkg returned an error code (1)
      – phenomenon
      Oct 30 '17 at 9:50








    • 2




      Are you trying install within a Linux Subsystem on Windows 10? My tested solution is only for a real Ubuntu system installed on its own partition. I have not tested on a Windows Linux subsystem and I cannot recommend its use. Serious users should install Ubuntu on its own partition.
      – Ambar Chatterjee
      Nov 2 '17 at 2:45













    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f765526%2fhow-to-install-gtk2-0%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    24














    The right command is:



    sudo apt-get install gtk2.0





    share|improve this answer




























      24














      The right command is:



      sudo apt-get install gtk2.0





      share|improve this answer


























        24












        24








        24






        The right command is:



        sudo apt-get install gtk2.0





        share|improve this answer














        The right command is:



        sudo apt-get install gtk2.0






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 2 '16 at 22:31

























        answered Apr 30 '16 at 21:47









        Tiago Bértolo

        4561315




        4561315

























            15














            First you need gtk2 and the command for that is



            sudo apt-get install gtk2.0


            chances are that its already installed.



            Then you need the development package libgtk2.0-dev and this can be installed by the command:



            sudo apt-get install build-essential libgtk2.0-dev


            Best regards and good luck with LAMPS



            Ambar Chatterjee






            share|improve this answer























            • I tried to install gtk2.0 in Ubuntu-bash (Windows 10) I got following error after running the first comment. Errors were encountered while processing: libpython3.5-minimal:amd64 python3.5-minimal libpython3.5-stdlib:amd64 python3.5 libpython3.5:amd64 libpython3.5-dev:amd64 libpython3-dev:amd64 python3.5-dev python3-dev python3-pip python3-setuptools python3-wheel E: Sub-process /usr/bin/dpkg returned an error code (1)
              – phenomenon
              Oct 30 '17 at 9:50








            • 2




              Are you trying install within a Linux Subsystem on Windows 10? My tested solution is only for a real Ubuntu system installed on its own partition. I have not tested on a Windows Linux subsystem and I cannot recommend its use. Serious users should install Ubuntu on its own partition.
              – Ambar Chatterjee
              Nov 2 '17 at 2:45


















            15














            First you need gtk2 and the command for that is



            sudo apt-get install gtk2.0


            chances are that its already installed.



            Then you need the development package libgtk2.0-dev and this can be installed by the command:



            sudo apt-get install build-essential libgtk2.0-dev


            Best regards and good luck with LAMPS



            Ambar Chatterjee






            share|improve this answer























            • I tried to install gtk2.0 in Ubuntu-bash (Windows 10) I got following error after running the first comment. Errors were encountered while processing: libpython3.5-minimal:amd64 python3.5-minimal libpython3.5-stdlib:amd64 python3.5 libpython3.5:amd64 libpython3.5-dev:amd64 libpython3-dev:amd64 python3.5-dev python3-dev python3-pip python3-setuptools python3-wheel E: Sub-process /usr/bin/dpkg returned an error code (1)
              – phenomenon
              Oct 30 '17 at 9:50








            • 2




              Are you trying install within a Linux Subsystem on Windows 10? My tested solution is only for a real Ubuntu system installed on its own partition. I have not tested on a Windows Linux subsystem and I cannot recommend its use. Serious users should install Ubuntu on its own partition.
              – Ambar Chatterjee
              Nov 2 '17 at 2:45
















            15












            15








            15






            First you need gtk2 and the command for that is



            sudo apt-get install gtk2.0


            chances are that its already installed.



            Then you need the development package libgtk2.0-dev and this can be installed by the command:



            sudo apt-get install build-essential libgtk2.0-dev


            Best regards and good luck with LAMPS



            Ambar Chatterjee






            share|improve this answer














            First you need gtk2 and the command for that is



            sudo apt-get install gtk2.0


            chances are that its already installed.



            Then you need the development package libgtk2.0-dev and this can be installed by the command:



            sudo apt-get install build-essential libgtk2.0-dev


            Best regards and good luck with LAMPS



            Ambar Chatterjee







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Oct 20 '16 at 12:20









            Nick Weinberg

            3,45841827




            3,45841827










            answered Oct 20 '16 at 11:55









            Ambar Chatterjee

            15113




            15113












            • I tried to install gtk2.0 in Ubuntu-bash (Windows 10) I got following error after running the first comment. Errors were encountered while processing: libpython3.5-minimal:amd64 python3.5-minimal libpython3.5-stdlib:amd64 python3.5 libpython3.5:amd64 libpython3.5-dev:amd64 libpython3-dev:amd64 python3.5-dev python3-dev python3-pip python3-setuptools python3-wheel E: Sub-process /usr/bin/dpkg returned an error code (1)
              – phenomenon
              Oct 30 '17 at 9:50








            • 2




              Are you trying install within a Linux Subsystem on Windows 10? My tested solution is only for a real Ubuntu system installed on its own partition. I have not tested on a Windows Linux subsystem and I cannot recommend its use. Serious users should install Ubuntu on its own partition.
              – Ambar Chatterjee
              Nov 2 '17 at 2:45




















            • I tried to install gtk2.0 in Ubuntu-bash (Windows 10) I got following error after running the first comment. Errors were encountered while processing: libpython3.5-minimal:amd64 python3.5-minimal libpython3.5-stdlib:amd64 python3.5 libpython3.5:amd64 libpython3.5-dev:amd64 libpython3-dev:amd64 python3.5-dev python3-dev python3-pip python3-setuptools python3-wheel E: Sub-process /usr/bin/dpkg returned an error code (1)
              – phenomenon
              Oct 30 '17 at 9:50








            • 2




              Are you trying install within a Linux Subsystem on Windows 10? My tested solution is only for a real Ubuntu system installed on its own partition. I have not tested on a Windows Linux subsystem and I cannot recommend its use. Serious users should install Ubuntu on its own partition.
              – Ambar Chatterjee
              Nov 2 '17 at 2:45


















            I tried to install gtk2.0 in Ubuntu-bash (Windows 10) I got following error after running the first comment. Errors were encountered while processing: libpython3.5-minimal:amd64 python3.5-minimal libpython3.5-stdlib:amd64 python3.5 libpython3.5:amd64 libpython3.5-dev:amd64 libpython3-dev:amd64 python3.5-dev python3-dev python3-pip python3-setuptools python3-wheel E: Sub-process /usr/bin/dpkg returned an error code (1)
            – phenomenon
            Oct 30 '17 at 9:50






            I tried to install gtk2.0 in Ubuntu-bash (Windows 10) I got following error after running the first comment. Errors were encountered while processing: libpython3.5-minimal:amd64 python3.5-minimal libpython3.5-stdlib:amd64 python3.5 libpython3.5:amd64 libpython3.5-dev:amd64 libpython3-dev:amd64 python3.5-dev python3-dev python3-pip python3-setuptools python3-wheel E: Sub-process /usr/bin/dpkg returned an error code (1)
            – phenomenon
            Oct 30 '17 at 9:50






            2




            2




            Are you trying install within a Linux Subsystem on Windows 10? My tested solution is only for a real Ubuntu system installed on its own partition. I have not tested on a Windows Linux subsystem and I cannot recommend its use. Serious users should install Ubuntu on its own partition.
            – Ambar Chatterjee
            Nov 2 '17 at 2:45






            Are you trying install within a Linux Subsystem on Windows 10? My tested solution is only for a real Ubuntu system installed on its own partition. I have not tested on a Windows Linux subsystem and I cannot recommend its use. Serious users should install Ubuntu on its own partition.
            – Ambar Chatterjee
            Nov 2 '17 at 2:45




















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f765526%2fhow-to-install-gtk2-0%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido