**curl** is not working on Ubuntu 18.04 LTS












33















I can't fetch content from the web using curl. I tried to intall it the out put below.




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.
curl : Depends: libcurl4 (= 7.58.0-2ubuntu3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.




I've checked for held packages with both sudo apt-mark showheld & dpkg -l | grep ^h in hopes of getting a list of held packages but I get no results either way.



Also, when I attempt to install libcurl4 it almost going to break my system since it attempts to remove these packages below.




libcurl3 mongodb-enterprise mongodb-enterprise-server mongodb-enterprise-tools msodbcsql msodbcsql17 mssql-tools php7.1-curl r-base r-base-core
r-base-dev r-base-html r-cran-boot r-cran-class r-cran-codetools r-cran-foreign r-cran-getopt r-cran-kernsmooth r-cran-lattice r-cran-littler
r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-recommended slack-desktop
virtualbox-5.2




Edit



# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution. deb http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution. deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team. deb http://gb.archive.ubuntu.com/ubuntu/ bionic universe deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic universe

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team. deb http://gb.archive.ubuntu.com/ubuntu/ bionic multiverse deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic
multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu bionic partner deb-src
http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security main
restricted

deb http://security.ubuntu.com/ubuntu bionic-security universe deb-src
http://security.ubuntu.com/ubuntu bionic-security universe

deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-proposed main
multiverse universe restricted #Not for humans during development
stage of release bionic
# ded-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted ui=niverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main
restricted multiverse universe









share|improve this question

























  • First do sudo apt-get update and then execute this command: dpkg -l | grep ^..r and add the output to your question

    – Hee Jin
    Apr 28 '18 at 15:24













  • The update runs well but still no output for dpkg -l | grep ^..r

    – Joseph-L-S
    Apr 28 '18 at 15:37











  • Try sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 and add the output to your question

    – Hee Jin
    May 3 '18 at 0:17











  • Also please edit your question to include the output of cat /etc/apt/sources.list

    – Hee Jin
    May 3 '18 at 0:35











  • sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 runs with no failures and indicates that libcurl4 is already the newest version(7.58.0-2ubuntu3). That's because I made some changes to the system. I found out that it is really specific packages that require an earlier version of libcurl e.g. 3. Ubuntu 18.04 LTS automatically installs php7.2 which comes with libcurl4. But with libcurl3 installed, I can't have curl installed. So, I ended up backing-up some data, let go of whatever wasn't really relevant and then reinstalled the packages with libcurl4 & curl.

    – Joseph-L-S
    May 5 '18 at 16:50


















33















I can't fetch content from the web using curl. I tried to intall it the out put below.




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.
curl : Depends: libcurl4 (= 7.58.0-2ubuntu3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.




I've checked for held packages with both sudo apt-mark showheld & dpkg -l | grep ^h in hopes of getting a list of held packages but I get no results either way.



Also, when I attempt to install libcurl4 it almost going to break my system since it attempts to remove these packages below.




libcurl3 mongodb-enterprise mongodb-enterprise-server mongodb-enterprise-tools msodbcsql msodbcsql17 mssql-tools php7.1-curl r-base r-base-core
r-base-dev r-base-html r-cran-boot r-cran-class r-cran-codetools r-cran-foreign r-cran-getopt r-cran-kernsmooth r-cran-lattice r-cran-littler
r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-recommended slack-desktop
virtualbox-5.2




Edit



# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution. deb http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution. deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team. deb http://gb.archive.ubuntu.com/ubuntu/ bionic universe deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic universe

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team. deb http://gb.archive.ubuntu.com/ubuntu/ bionic multiverse deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic
multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu bionic partner deb-src
http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security main
restricted

deb http://security.ubuntu.com/ubuntu bionic-security universe deb-src
http://security.ubuntu.com/ubuntu bionic-security universe

deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-proposed main
multiverse universe restricted #Not for humans during development
stage of release bionic
# ded-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted ui=niverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main
restricted multiverse universe









share|improve this question

























  • First do sudo apt-get update and then execute this command: dpkg -l | grep ^..r and add the output to your question

    – Hee Jin
    Apr 28 '18 at 15:24













  • The update runs well but still no output for dpkg -l | grep ^..r

    – Joseph-L-S
    Apr 28 '18 at 15:37











  • Try sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 and add the output to your question

    – Hee Jin
    May 3 '18 at 0:17











  • Also please edit your question to include the output of cat /etc/apt/sources.list

    – Hee Jin
    May 3 '18 at 0:35











  • sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 runs with no failures and indicates that libcurl4 is already the newest version(7.58.0-2ubuntu3). That's because I made some changes to the system. I found out that it is really specific packages that require an earlier version of libcurl e.g. 3. Ubuntu 18.04 LTS automatically installs php7.2 which comes with libcurl4. But with libcurl3 installed, I can't have curl installed. So, I ended up backing-up some data, let go of whatever wasn't really relevant and then reinstalled the packages with libcurl4 & curl.

    – Joseph-L-S
    May 5 '18 at 16:50
















33












33








33


4






I can't fetch content from the web using curl. I tried to intall it the out put below.




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.
curl : Depends: libcurl4 (= 7.58.0-2ubuntu3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.




I've checked for held packages with both sudo apt-mark showheld & dpkg -l | grep ^h in hopes of getting a list of held packages but I get no results either way.



Also, when I attempt to install libcurl4 it almost going to break my system since it attempts to remove these packages below.




libcurl3 mongodb-enterprise mongodb-enterprise-server mongodb-enterprise-tools msodbcsql msodbcsql17 mssql-tools php7.1-curl r-base r-base-core
r-base-dev r-base-html r-cran-boot r-cran-class r-cran-codetools r-cran-foreign r-cran-getopt r-cran-kernsmooth r-cran-lattice r-cran-littler
r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-recommended slack-desktop
virtualbox-5.2




Edit



# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution. deb http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution. deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team. deb http://gb.archive.ubuntu.com/ubuntu/ bionic universe deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic universe

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team. deb http://gb.archive.ubuntu.com/ubuntu/ bionic multiverse deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic
multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu bionic partner deb-src
http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security main
restricted

deb http://security.ubuntu.com/ubuntu bionic-security universe deb-src
http://security.ubuntu.com/ubuntu bionic-security universe

deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-proposed main
multiverse universe restricted #Not for humans during development
stage of release bionic
# ded-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted ui=niverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main
restricted multiverse universe









share|improve this question
















I can't fetch content from the web using curl. I tried to intall it the out put below.




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.
curl : Depends: libcurl4 (= 7.58.0-2ubuntu3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.




I've checked for held packages with both sudo apt-mark showheld & dpkg -l | grep ^h in hopes of getting a list of held packages but I get no results either way.



Also, when I attempt to install libcurl4 it almost going to break my system since it attempts to remove these packages below.




libcurl3 mongodb-enterprise mongodb-enterprise-server mongodb-enterprise-tools msodbcsql msodbcsql17 mssql-tools php7.1-curl r-base r-base-core
r-base-dev r-base-html r-cran-boot r-cran-class r-cran-codetools r-cran-foreign r-cran-getopt r-cran-kernsmooth r-cran-lattice r-cran-littler
r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-recommended slack-desktop
virtualbox-5.2




Edit



# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution. deb http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution. deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team. deb http://gb.archive.ubuntu.com/ubuntu/ bionic universe deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic universe

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team. deb http://gb.archive.ubuntu.com/ubuntu/ bionic multiverse deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic
multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu bionic partner deb-src
http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security main
restricted

deb http://security.ubuntu.com/ubuntu bionic-security universe deb-src
http://security.ubuntu.com/ubuntu bionic-security universe

deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-proposed main
multiverse universe restricted #Not for humans during development
stage of release bionic
# ded-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted ui=niverse

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main
restricted multiverse universe






apt package-management dependencies curl php7






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 7 '18 at 7:28









Community

1




1










asked Apr 28 '18 at 15:11









Joseph-L-SJoseph-L-S

183239




183239













  • First do sudo apt-get update and then execute this command: dpkg -l | grep ^..r and add the output to your question

    – Hee Jin
    Apr 28 '18 at 15:24













  • The update runs well but still no output for dpkg -l | grep ^..r

    – Joseph-L-S
    Apr 28 '18 at 15:37











  • Try sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 and add the output to your question

    – Hee Jin
    May 3 '18 at 0:17











  • Also please edit your question to include the output of cat /etc/apt/sources.list

    – Hee Jin
    May 3 '18 at 0:35











  • sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 runs with no failures and indicates that libcurl4 is already the newest version(7.58.0-2ubuntu3). That's because I made some changes to the system. I found out that it is really specific packages that require an earlier version of libcurl e.g. 3. Ubuntu 18.04 LTS automatically installs php7.2 which comes with libcurl4. But with libcurl3 installed, I can't have curl installed. So, I ended up backing-up some data, let go of whatever wasn't really relevant and then reinstalled the packages with libcurl4 & curl.

    – Joseph-L-S
    May 5 '18 at 16:50





















  • First do sudo apt-get update and then execute this command: dpkg -l | grep ^..r and add the output to your question

    – Hee Jin
    Apr 28 '18 at 15:24













  • The update runs well but still no output for dpkg -l | grep ^..r

    – Joseph-L-S
    Apr 28 '18 at 15:37











  • Try sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 and add the output to your question

    – Hee Jin
    May 3 '18 at 0:17











  • Also please edit your question to include the output of cat /etc/apt/sources.list

    – Hee Jin
    May 3 '18 at 0:35











  • sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 runs with no failures and indicates that libcurl4 is already the newest version(7.58.0-2ubuntu3). That's because I made some changes to the system. I found out that it is really specific packages that require an earlier version of libcurl e.g. 3. Ubuntu 18.04 LTS automatically installs php7.2 which comes with libcurl4. But with libcurl3 installed, I can't have curl installed. So, I ended up backing-up some data, let go of whatever wasn't really relevant and then reinstalled the packages with libcurl4 & curl.

    – Joseph-L-S
    May 5 '18 at 16:50



















First do sudo apt-get update and then execute this command: dpkg -l | grep ^..r and add the output to your question

– Hee Jin
Apr 28 '18 at 15:24







First do sudo apt-get update and then execute this command: dpkg -l | grep ^..r and add the output to your question

– Hee Jin
Apr 28 '18 at 15:24















The update runs well but still no output for dpkg -l | grep ^..r

– Joseph-L-S
Apr 28 '18 at 15:37





The update runs well but still no output for dpkg -l | grep ^..r

– Joseph-L-S
Apr 28 '18 at 15:37













Try sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 and add the output to your question

– Hee Jin
May 3 '18 at 0:17





Try sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 and add the output to your question

– Hee Jin
May 3 '18 at 0:17













Also please edit your question to include the output of cat /etc/apt/sources.list

– Hee Jin
May 3 '18 at 0:35





Also please edit your question to include the output of cat /etc/apt/sources.list

– Hee Jin
May 3 '18 at 0:35













sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 runs with no failures and indicates that libcurl4 is already the newest version(7.58.0-2ubuntu3). That's because I made some changes to the system. I found out that it is really specific packages that require an earlier version of libcurl e.g. 3. Ubuntu 18.04 LTS automatically installs php7.2 which comes with libcurl4. But with libcurl3 installed, I can't have curl installed. So, I ended up backing-up some data, let go of whatever wasn't really relevant and then reinstalled the packages with libcurl4 & curl.

– Joseph-L-S
May 5 '18 at 16:50







sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4 runs with no failures and indicates that libcurl4 is already the newest version(7.58.0-2ubuntu3). That's because I made some changes to the system. I found out that it is really specific packages that require an earlier version of libcurl e.g. 3. Ubuntu 18.04 LTS automatically installs php7.2 which comes with libcurl4. But with libcurl3 installed, I can't have curl installed. So, I ended up backing-up some data, let go of whatever wasn't really relevant and then reinstalled the packages with libcurl4 & curl.

– Joseph-L-S
May 5 '18 at 16:50












3 Answers
3






active

oldest

votes


















23














This problem is common in multiple packages in ubuntu recent LTS. Preinstalled packages have a possible error in version convention because "18.04" and other strings referencing repo are considering as part of the package version and not reference to the repo.

The workaround is uninstall preinstalled dependency and then reinstall. After that, you can install cURL.



apt remove -y libcurl4
apt install -y libcurl4 curl


Other packages with that problem are okular and libsdl2, and the solution is the same, track problematic dependencies, remove and reinstall.



Also, you can use apt downgrade mechanism (thus, is not necessary to uninstall packages that depend of libcurl4).



apt install -y libcurl4=7.58.0-2ubuntu3
apt install -y curl





share|improve this answer

































    1














    Install curl from source . That worked for me



    git clone https://github.com/curl/curl.git



    https://curl.haxx.se/docs/install.html



    ./buildconf
    ./configure
    make
    make test (optional)
    sudo make install






    share|improve this answer































      0














      Try to use



      sudo apt install libcurl4-openssl-dev


      If necessary



      sudo update
      sudo apt remove libcurl4





      share|improve this answer
























        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%2f1029273%2fcurl-is-not-working-on-ubuntu-18-04-lts%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        23














        This problem is common in multiple packages in ubuntu recent LTS. Preinstalled packages have a possible error in version convention because "18.04" and other strings referencing repo are considering as part of the package version and not reference to the repo.

        The workaround is uninstall preinstalled dependency and then reinstall. After that, you can install cURL.



        apt remove -y libcurl4
        apt install -y libcurl4 curl


        Other packages with that problem are okular and libsdl2, and the solution is the same, track problematic dependencies, remove and reinstall.



        Also, you can use apt downgrade mechanism (thus, is not necessary to uninstall packages that depend of libcurl4).



        apt install -y libcurl4=7.58.0-2ubuntu3
        apt install -y curl





        share|improve this answer






























          23














          This problem is common in multiple packages in ubuntu recent LTS. Preinstalled packages have a possible error in version convention because "18.04" and other strings referencing repo are considering as part of the package version and not reference to the repo.

          The workaround is uninstall preinstalled dependency and then reinstall. After that, you can install cURL.



          apt remove -y libcurl4
          apt install -y libcurl4 curl


          Other packages with that problem are okular and libsdl2, and the solution is the same, track problematic dependencies, remove and reinstall.



          Also, you can use apt downgrade mechanism (thus, is not necessary to uninstall packages that depend of libcurl4).



          apt install -y libcurl4=7.58.0-2ubuntu3
          apt install -y curl





          share|improve this answer




























            23












            23








            23







            This problem is common in multiple packages in ubuntu recent LTS. Preinstalled packages have a possible error in version convention because "18.04" and other strings referencing repo are considering as part of the package version and not reference to the repo.

            The workaround is uninstall preinstalled dependency and then reinstall. After that, you can install cURL.



            apt remove -y libcurl4
            apt install -y libcurl4 curl


            Other packages with that problem are okular and libsdl2, and the solution is the same, track problematic dependencies, remove and reinstall.



            Also, you can use apt downgrade mechanism (thus, is not necessary to uninstall packages that depend of libcurl4).



            apt install -y libcurl4=7.58.0-2ubuntu3
            apt install -y curl





            share|improve this answer















            This problem is common in multiple packages in ubuntu recent LTS. Preinstalled packages have a possible error in version convention because "18.04" and other strings referencing repo are considering as part of the package version and not reference to the repo.

            The workaround is uninstall preinstalled dependency and then reinstall. After that, you can install cURL.



            apt remove -y libcurl4
            apt install -y libcurl4 curl


            Other packages with that problem are okular and libsdl2, and the solution is the same, track problematic dependencies, remove and reinstall.



            Also, you can use apt downgrade mechanism (thus, is not necessary to uninstall packages that depend of libcurl4).



            apt install -y libcurl4=7.58.0-2ubuntu3
            apt install -y curl






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jul 4 '18 at 2:30

























            answered Jul 4 '18 at 2:22









            cosmoscaliburcosmoscalibur

            752618




            752618

























                1














                Install curl from source . That worked for me



                git clone https://github.com/curl/curl.git



                https://curl.haxx.se/docs/install.html



                ./buildconf
                ./configure
                make
                make test (optional)
                sudo make install






                share|improve this answer




























                  1














                  Install curl from source . That worked for me



                  git clone https://github.com/curl/curl.git



                  https://curl.haxx.se/docs/install.html



                  ./buildconf
                  ./configure
                  make
                  make test (optional)
                  sudo make install






                  share|improve this answer


























                    1












                    1








                    1







                    Install curl from source . That worked for me



                    git clone https://github.com/curl/curl.git



                    https://curl.haxx.se/docs/install.html



                    ./buildconf
                    ./configure
                    make
                    make test (optional)
                    sudo make install






                    share|improve this answer













                    Install curl from source . That worked for me



                    git clone https://github.com/curl/curl.git



                    https://curl.haxx.se/docs/install.html



                    ./buildconf
                    ./configure
                    make
                    make test (optional)
                    sudo make install







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jul 13 '18 at 6:41









                    Panagiotis KranidiotisPanagiotis Kranidiotis

                    111




                    111























                        0














                        Try to use



                        sudo apt install libcurl4-openssl-dev


                        If necessary



                        sudo update
                        sudo apt remove libcurl4





                        share|improve this answer




























                          0














                          Try to use



                          sudo apt install libcurl4-openssl-dev


                          If necessary



                          sudo update
                          sudo apt remove libcurl4





                          share|improve this answer


























                            0












                            0








                            0







                            Try to use



                            sudo apt install libcurl4-openssl-dev


                            If necessary



                            sudo update
                            sudo apt remove libcurl4





                            share|improve this answer













                            Try to use



                            sudo apt install libcurl4-openssl-dev


                            If necessary



                            sudo update
                            sudo apt remove libcurl4






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered 12 mins ago









                            HearenHearen

                            1137




                            1137






























                                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.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1029273%2fcurl-is-not-working-on-ubuntu-18-04-lts%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

                                GameSpot

                                日野市

                                Tu-95轟炸機