How to make apt ignore unfulfilled dependencies of installed package?












5















I installed Opera 12.16 from a .deb for reasons. Just assume that I need this specific browser of this specific version and that there’s no alternative.



However, that deb depends on packages (such as the gstreamer0.10 series) which are not in my distribution anymore (Debian testing). This makes apt fail on every operation except apt remove opera with dependency errors:



# apt install cli-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
opera : Depends: gstreamer0.10-plugins-good but it is not installable
Recommends: flashplugin-nonfree but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


apt --fix-broken install will just propose to remove opera:



# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
opera
0 upgraded, 0 newly installed, 1 to remove and 92 not upgraded.
1 not fully installed or removed.
After this operation, 46.6 MB disk space will be freed.
Do you want to continue? [Y/n]


Currently, my workaround is to install opera when I need it, and remove it as soon as anything else needs to be done with apt. This is annoying.



Any suggestions? Ideally, I’d like to make apt ignore the dependencies of opera forever, since it works well-enough for my purposes.










share|improve this question



























    5















    I installed Opera 12.16 from a .deb for reasons. Just assume that I need this specific browser of this specific version and that there’s no alternative.



    However, that deb depends on packages (such as the gstreamer0.10 series) which are not in my distribution anymore (Debian testing). This makes apt fail on every operation except apt remove opera with dependency errors:



    # apt install cli-common
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
    opera : Depends: gstreamer0.10-plugins-good but it is not installable
    Recommends: flashplugin-nonfree but it is not going to be installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


    apt --fix-broken install will just propose to remove opera:



    # apt --fix-broken install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following packages will be REMOVED:
    opera
    0 upgraded, 0 newly installed, 1 to remove and 92 not upgraded.
    1 not fully installed or removed.
    After this operation, 46.6 MB disk space will be freed.
    Do you want to continue? [Y/n]


    Currently, my workaround is to install opera when I need it, and remove it as soon as anything else needs to be done with apt. This is annoying.



    Any suggestions? Ideally, I’d like to make apt ignore the dependencies of opera forever, since it works well-enough for my purposes.










    share|improve this question

























      5












      5








      5


      1






      I installed Opera 12.16 from a .deb for reasons. Just assume that I need this specific browser of this specific version and that there’s no alternative.



      However, that deb depends on packages (such as the gstreamer0.10 series) which are not in my distribution anymore (Debian testing). This makes apt fail on every operation except apt remove opera with dependency errors:



      # apt install cli-common
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      You might want to run 'apt --fix-broken install' to correct these.
      The following packages have unmet dependencies:
      opera : Depends: gstreamer0.10-plugins-good but it is not installable
      Recommends: flashplugin-nonfree but it is not going to be installed
      E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


      apt --fix-broken install will just propose to remove opera:



      # apt --fix-broken install
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Correcting dependencies... Done
      The following packages will be REMOVED:
      opera
      0 upgraded, 0 newly installed, 1 to remove and 92 not upgraded.
      1 not fully installed or removed.
      After this operation, 46.6 MB disk space will be freed.
      Do you want to continue? [Y/n]


      Currently, my workaround is to install opera when I need it, and remove it as soon as anything else needs to be done with apt. This is annoying.



      Any suggestions? Ideally, I’d like to make apt ignore the dependencies of opera forever, since it works well-enough for my purposes.










      share|improve this question














      I installed Opera 12.16 from a .deb for reasons. Just assume that I need this specific browser of this specific version and that there’s no alternative.



      However, that deb depends on packages (such as the gstreamer0.10 series) which are not in my distribution anymore (Debian testing). This makes apt fail on every operation except apt remove opera with dependency errors:



      # apt install cli-common
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      You might want to run 'apt --fix-broken install' to correct these.
      The following packages have unmet dependencies:
      opera : Depends: gstreamer0.10-plugins-good but it is not installable
      Recommends: flashplugin-nonfree but it is not going to be installed
      E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


      apt --fix-broken install will just propose to remove opera:



      # apt --fix-broken install
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Correcting dependencies... Done
      The following packages will be REMOVED:
      opera
      0 upgraded, 0 newly installed, 1 to remove and 92 not upgraded.
      1 not fully installed or removed.
      After this operation, 46.6 MB disk space will be freed.
      Do you want to continue? [Y/n]


      Currently, my workaround is to install opera when I need it, and remove it as soon as anything else needs to be done with apt. This is annoying.



      Any suggestions? Ideally, I’d like to make apt ignore the dependencies of opera forever, since it works well-enough for my purposes.







      debian apt dependencies






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '17 at 9:30









      Jonas SchäferJonas Schäfer

      8991722




      8991722






















          2 Answers
          2






          active

          oldest

          votes


















          9














          You can’t make apt ignore dependencies, but you can create a fake gstreamer0.10-plugins-good package which will satisfy the missing dependency. The simplest way to do this is using equivs:





          1. install equivs



            sudo apt install equivs



          2. generate a template control file



            equivs-control gstreamer0.10-plugins-good.control



          3. fix the package name



            sed -i 's/<package name; defaults to equivs-dummy>/gstreamer0.10-plugins-good/g' gstreamer0.10-plugins-good.control



          4. build the package



            equivs-build gstreamer0.10-plugins-good.control



          5. install it



            sudo dpkg -i gstreamer0.10-plugins-good_1.0_all.deb



          That should satisfy the opera package’s dependency.






          share|improve this answer


























          • Does the equivs work anyway to solve the unmet dependencies (i mean when the apt-cache return nothing)?

            – GAD3R
            Nov 14 '17 at 9:48








          • 1





            @GAD3R I’m not sure what you mean. From the question, the only missing dependency is Depends: gstreamer0.10-plugins-good but it is not installable (the other is a Recommends which doesn’t matter). The commands I list above build an empty gstreamer0.10-plugins-good package which will satisfy the missing dependency without adding any of its own.

            – Stephen Kitt
            Nov 14 '17 at 9:53













          • Uninstalls opera to install equivs. Thanks! That did the trick! I’m not even sad that if a package flashplugin-nonfree ever appears in the repositories, I won’t be able to install it until it passes 1.0 :-)

            – Jonas Schäfer
            Nov 14 '17 at 12:19











          • Howdy. In 2018 is this really still the only way to truly ignore dependencies in Apt? The internet is telling me it is, though.

            – JDS
            Aug 16 '18 at 17:49






          • 1





            @JDS yes, it is the only way. Dependencies are there for a reason, it shouldn’t be easy to ignore them.

            – Stephen Kitt
            Aug 16 '18 at 18:26



















          2














          You can also remove the gstreamer0.10-plugins-good dependency of the opera package by editing /var/lib/dpkg/status.



          Just open it with a text editor, search for the line Package: opera and under it in the Depends: line remove the offending gstreamer0.10-plugins-goodpackage.



          After that apt works again.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f404444%2fhow-to-make-apt-ignore-unfulfilled-dependencies-of-installed-package%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









            9














            You can’t make apt ignore dependencies, but you can create a fake gstreamer0.10-plugins-good package which will satisfy the missing dependency. The simplest way to do this is using equivs:





            1. install equivs



              sudo apt install equivs



            2. generate a template control file



              equivs-control gstreamer0.10-plugins-good.control



            3. fix the package name



              sed -i 's/<package name; defaults to equivs-dummy>/gstreamer0.10-plugins-good/g' gstreamer0.10-plugins-good.control



            4. build the package



              equivs-build gstreamer0.10-plugins-good.control



            5. install it



              sudo dpkg -i gstreamer0.10-plugins-good_1.0_all.deb



            That should satisfy the opera package’s dependency.






            share|improve this answer


























            • Does the equivs work anyway to solve the unmet dependencies (i mean when the apt-cache return nothing)?

              – GAD3R
              Nov 14 '17 at 9:48








            • 1





              @GAD3R I’m not sure what you mean. From the question, the only missing dependency is Depends: gstreamer0.10-plugins-good but it is not installable (the other is a Recommends which doesn’t matter). The commands I list above build an empty gstreamer0.10-plugins-good package which will satisfy the missing dependency without adding any of its own.

              – Stephen Kitt
              Nov 14 '17 at 9:53













            • Uninstalls opera to install equivs. Thanks! That did the trick! I’m not even sad that if a package flashplugin-nonfree ever appears in the repositories, I won’t be able to install it until it passes 1.0 :-)

              – Jonas Schäfer
              Nov 14 '17 at 12:19











            • Howdy. In 2018 is this really still the only way to truly ignore dependencies in Apt? The internet is telling me it is, though.

              – JDS
              Aug 16 '18 at 17:49






            • 1





              @JDS yes, it is the only way. Dependencies are there for a reason, it shouldn’t be easy to ignore them.

              – Stephen Kitt
              Aug 16 '18 at 18:26
















            9














            You can’t make apt ignore dependencies, but you can create a fake gstreamer0.10-plugins-good package which will satisfy the missing dependency. The simplest way to do this is using equivs:





            1. install equivs



              sudo apt install equivs



            2. generate a template control file



              equivs-control gstreamer0.10-plugins-good.control



            3. fix the package name



              sed -i 's/<package name; defaults to equivs-dummy>/gstreamer0.10-plugins-good/g' gstreamer0.10-plugins-good.control



            4. build the package



              equivs-build gstreamer0.10-plugins-good.control



            5. install it



              sudo dpkg -i gstreamer0.10-plugins-good_1.0_all.deb



            That should satisfy the opera package’s dependency.






            share|improve this answer


























            • Does the equivs work anyway to solve the unmet dependencies (i mean when the apt-cache return nothing)?

              – GAD3R
              Nov 14 '17 at 9:48








            • 1





              @GAD3R I’m not sure what you mean. From the question, the only missing dependency is Depends: gstreamer0.10-plugins-good but it is not installable (the other is a Recommends which doesn’t matter). The commands I list above build an empty gstreamer0.10-plugins-good package which will satisfy the missing dependency without adding any of its own.

              – Stephen Kitt
              Nov 14 '17 at 9:53













            • Uninstalls opera to install equivs. Thanks! That did the trick! I’m not even sad that if a package flashplugin-nonfree ever appears in the repositories, I won’t be able to install it until it passes 1.0 :-)

              – Jonas Schäfer
              Nov 14 '17 at 12:19











            • Howdy. In 2018 is this really still the only way to truly ignore dependencies in Apt? The internet is telling me it is, though.

              – JDS
              Aug 16 '18 at 17:49






            • 1





              @JDS yes, it is the only way. Dependencies are there for a reason, it shouldn’t be easy to ignore them.

              – Stephen Kitt
              Aug 16 '18 at 18:26














            9












            9








            9







            You can’t make apt ignore dependencies, but you can create a fake gstreamer0.10-plugins-good package which will satisfy the missing dependency. The simplest way to do this is using equivs:





            1. install equivs



              sudo apt install equivs



            2. generate a template control file



              equivs-control gstreamer0.10-plugins-good.control



            3. fix the package name



              sed -i 's/<package name; defaults to equivs-dummy>/gstreamer0.10-plugins-good/g' gstreamer0.10-plugins-good.control



            4. build the package



              equivs-build gstreamer0.10-plugins-good.control



            5. install it



              sudo dpkg -i gstreamer0.10-plugins-good_1.0_all.deb



            That should satisfy the opera package’s dependency.






            share|improve this answer















            You can’t make apt ignore dependencies, but you can create a fake gstreamer0.10-plugins-good package which will satisfy the missing dependency. The simplest way to do this is using equivs:





            1. install equivs



              sudo apt install equivs



            2. generate a template control file



              equivs-control gstreamer0.10-plugins-good.control



            3. fix the package name



              sed -i 's/<package name; defaults to equivs-dummy>/gstreamer0.10-plugins-good/g' gstreamer0.10-plugins-good.control



            4. build the package



              equivs-build gstreamer0.10-plugins-good.control



            5. install it



              sudo dpkg -i gstreamer0.10-plugins-good_1.0_all.deb



            That should satisfy the opera package’s dependency.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 14 '17 at 9:53

























            answered Nov 14 '17 at 9:43









            Stephen KittStephen Kitt

            170k24385462




            170k24385462













            • Does the equivs work anyway to solve the unmet dependencies (i mean when the apt-cache return nothing)?

              – GAD3R
              Nov 14 '17 at 9:48








            • 1





              @GAD3R I’m not sure what you mean. From the question, the only missing dependency is Depends: gstreamer0.10-plugins-good but it is not installable (the other is a Recommends which doesn’t matter). The commands I list above build an empty gstreamer0.10-plugins-good package which will satisfy the missing dependency without adding any of its own.

              – Stephen Kitt
              Nov 14 '17 at 9:53













            • Uninstalls opera to install equivs. Thanks! That did the trick! I’m not even sad that if a package flashplugin-nonfree ever appears in the repositories, I won’t be able to install it until it passes 1.0 :-)

              – Jonas Schäfer
              Nov 14 '17 at 12:19











            • Howdy. In 2018 is this really still the only way to truly ignore dependencies in Apt? The internet is telling me it is, though.

              – JDS
              Aug 16 '18 at 17:49






            • 1





              @JDS yes, it is the only way. Dependencies are there for a reason, it shouldn’t be easy to ignore them.

              – Stephen Kitt
              Aug 16 '18 at 18:26



















            • Does the equivs work anyway to solve the unmet dependencies (i mean when the apt-cache return nothing)?

              – GAD3R
              Nov 14 '17 at 9:48








            • 1





              @GAD3R I’m not sure what you mean. From the question, the only missing dependency is Depends: gstreamer0.10-plugins-good but it is not installable (the other is a Recommends which doesn’t matter). The commands I list above build an empty gstreamer0.10-plugins-good package which will satisfy the missing dependency without adding any of its own.

              – Stephen Kitt
              Nov 14 '17 at 9:53













            • Uninstalls opera to install equivs. Thanks! That did the trick! I’m not even sad that if a package flashplugin-nonfree ever appears in the repositories, I won’t be able to install it until it passes 1.0 :-)

              – Jonas Schäfer
              Nov 14 '17 at 12:19











            • Howdy. In 2018 is this really still the only way to truly ignore dependencies in Apt? The internet is telling me it is, though.

              – JDS
              Aug 16 '18 at 17:49






            • 1





              @JDS yes, it is the only way. Dependencies are there for a reason, it shouldn’t be easy to ignore them.

              – Stephen Kitt
              Aug 16 '18 at 18:26

















            Does the equivs work anyway to solve the unmet dependencies (i mean when the apt-cache return nothing)?

            – GAD3R
            Nov 14 '17 at 9:48







            Does the equivs work anyway to solve the unmet dependencies (i mean when the apt-cache return nothing)?

            – GAD3R
            Nov 14 '17 at 9:48






            1




            1





            @GAD3R I’m not sure what you mean. From the question, the only missing dependency is Depends: gstreamer0.10-plugins-good but it is not installable (the other is a Recommends which doesn’t matter). The commands I list above build an empty gstreamer0.10-plugins-good package which will satisfy the missing dependency without adding any of its own.

            – Stephen Kitt
            Nov 14 '17 at 9:53







            @GAD3R I’m not sure what you mean. From the question, the only missing dependency is Depends: gstreamer0.10-plugins-good but it is not installable (the other is a Recommends which doesn’t matter). The commands I list above build an empty gstreamer0.10-plugins-good package which will satisfy the missing dependency without adding any of its own.

            – Stephen Kitt
            Nov 14 '17 at 9:53















            Uninstalls opera to install equivs. Thanks! That did the trick! I’m not even sad that if a package flashplugin-nonfree ever appears in the repositories, I won’t be able to install it until it passes 1.0 :-)

            – Jonas Schäfer
            Nov 14 '17 at 12:19





            Uninstalls opera to install equivs. Thanks! That did the trick! I’m not even sad that if a package flashplugin-nonfree ever appears in the repositories, I won’t be able to install it until it passes 1.0 :-)

            – Jonas Schäfer
            Nov 14 '17 at 12:19













            Howdy. In 2018 is this really still the only way to truly ignore dependencies in Apt? The internet is telling me it is, though.

            – JDS
            Aug 16 '18 at 17:49





            Howdy. In 2018 is this really still the only way to truly ignore dependencies in Apt? The internet is telling me it is, though.

            – JDS
            Aug 16 '18 at 17:49




            1




            1





            @JDS yes, it is the only way. Dependencies are there for a reason, it shouldn’t be easy to ignore them.

            – Stephen Kitt
            Aug 16 '18 at 18:26





            @JDS yes, it is the only way. Dependencies are there for a reason, it shouldn’t be easy to ignore them.

            – Stephen Kitt
            Aug 16 '18 at 18:26













            2














            You can also remove the gstreamer0.10-plugins-good dependency of the opera package by editing /var/lib/dpkg/status.



            Just open it with a text editor, search for the line Package: opera and under it in the Depends: line remove the offending gstreamer0.10-plugins-goodpackage.



            After that apt works again.






            share|improve this answer




























              2














              You can also remove the gstreamer0.10-plugins-good dependency of the opera package by editing /var/lib/dpkg/status.



              Just open it with a text editor, search for the line Package: opera and under it in the Depends: line remove the offending gstreamer0.10-plugins-goodpackage.



              After that apt works again.






              share|improve this answer


























                2












                2








                2







                You can also remove the gstreamer0.10-plugins-good dependency of the opera package by editing /var/lib/dpkg/status.



                Just open it with a text editor, search for the line Package: opera and under it in the Depends: line remove the offending gstreamer0.10-plugins-goodpackage.



                After that apt works again.






                share|improve this answer













                You can also remove the gstreamer0.10-plugins-good dependency of the opera package by editing /var/lib/dpkg/status.



                Just open it with a text editor, search for the line Package: opera and under it in the Depends: line remove the offending gstreamer0.10-plugins-goodpackage.



                After that apt works again.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 12 '18 at 8:03









                tgauweilertgauweiler

                211




                211






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f404444%2fhow-to-make-apt-ignore-unfulfilled-dependencies-of-installed-package%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

                    How to make a Squid Proxy server?

                    Is this a new Fibonacci Identity?

                    19世紀