2

I am trying to run sudo apt-get install ubuntu-standard systemd-sysv but I keep getting the error: "temporary failure resolving 'ca.archive.ubuntu.com'". I tried following the steps listed here but nothing has worked. Is there a way fix this or at least to download these packages without access to the gui? I tried to revert to upstart but that caused boot errors, so now I'm just trying to return to systemd from recovery mode so I can boot up and live my life.

I apologize for any formatting issues, I'm typing this from my phone

0

2 Answers 2

5

Were you in recovery mode after booting from the CD? In this situation you need to try to add a nameserver like Google's 8.8.8.8 to /etc/resolv.conf. However, it is slightly more difficult in Ubuntu to do this as it uses the resolvconf system. You can get around that temporarily by:

rm /etc/resolv.conf
touch /etc/resolv.conf
echo "nameserver 8.8.8.8" > /etc/resolv.conf

before exiting rescue mode, reverse this change

rm /etc/resolv.conf
ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
2
  • This doesn't add anything to this old question. The OP also doesn't state if they're on the CD or in rescue mode, so unless they are, this doesn't answer the question either.
    – Thomas Ward
    Apr 23, 2018 at 16:18
  • "now I am just trying to return to systemd from recovery mode so I can boot up and live my life". Sounds like what I am describing, and since I just had the identical issue that he describes, and doing what I have said, helped very much solve my problem, I thought I'd add it. So unless I've completely misunderstood, how doesn't it add anything?
    – Zief
    Apr 24, 2018 at 6:30
0

"temporary failure resolving" usually is caused by network connectivity issues. Here for me http://ca.archive.ubuntu.com/ is reachable. Is you Ubuntu computer having no Internet access right now ? If you want just that package, see here :

http://packages.ubuntu.com/search?keywords=systemd-sysv

For example, if you want to download the amd64 version for Xenial, see here :

http://packages.ubuntu.com/xenial/amd64/systemd-sysv/download

Similar for http://packages.ubuntu.com/search?keywords=ubuntu-standard

4
  • Is there a way to test my connection from the terminal? I don't have access to the gui since I'm in recovery mode
    – Matt G
    Jan 12, 2017 at 1:05
  • 1
    @MattG have you enabled networking? it's normally disabled in recovery mode Jan 12, 2017 at 1:12
  • How do I do that?
    – Matt G
    Jan 12, 2017 at 1:16
  • Which Ubuntu release are you using ? If you have a network cable attached, try : dhclient
    – albert j
    Jan 12, 2017 at 1:29

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