install package cpprest2.10/cpprest

Asked by Chris

Hi support,

I am using Ubuntu Jammy.

-------------
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
------------------

I am trying to intall the package cpprest2.10 (or cpprest), which I know is available from the repository. I know this because I have checked on https://help.ubuntu.com/

I have tried these commands:

a) sudo apt-get install cpprest2.10
b) sudo apt-get install -f
c) sudo apt-get install --fix-missing cpprest2.10

Each time I get the following messages:
-----------------
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libcpprest2.10' for regex 'cpprest2.10'
The following NEW packages will be installed:
  libcpprest2.10
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 841 kB of archives.
After this operation, 3993 kB of additional disk space will be used.
Ign:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libcpprest2.10 amd64 2.10.18-1build2
Ign:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libcpprest2.10 amd64 2.10.18-1build2
Ign:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libcpprest2.10 amd64 2.10.18-1build2
Err:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libcpprest2.10 amd64 2.10.18-1build2
  Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/c/cpprest/libcpprest2.10_2.10.18-1build2_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Internal Error, ordering was unable to handle the media swap
----------------

Please let me know how I can install cpprest2.10 or cpprest.

Best regards
Chris Sroka

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

Try:

sudo cp /etc/resolv.conf /etc/resolv.conf-2024-04-02
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

Then run your commands. Do they work OK? You can then undo the DNS change with:

cat /etc/resolv.conf-2024-04-02 | sudo tee /etc/resolv.conf > /dev/null

HTH

Revision history for this message
Chris (csroka) said :
#2

Thanks actionparsnip, that solved my question.