"Apt configuration problem. An attempt to configure apt to install additional packages from the CD failed"

15,931

Firstly, I assume you are trying to install Natty on your HP desktop from a USB.

So, I looked up the error and reached Ubiquity bug 768239 where comment 11 is might be useful.

Bug 768239 is
11.04 Installer crashed, apt configuration problem:
InstallStepError: >AptSetup failed with code 127

Notes in that comment suggest bug 658865 is the cause for this...

When trying to install Ubuntu 10.10 from USB, ubiquity crashes with this message: "An attempt to configure apt to install additional packages from the CD failed."

Root of problem
The problem is that the file structure on the usb differs to what is on a livecd and apt-setup is unaware of this.

That bug goes on to discuss two alternatives.

  1. Remove the script that causes the error, when installing from a Live setup ("Try Ubuntu"):

    sudo rm /usr/lib/ubiquity/apt-setup/generators/40cdrom

  2. Create the files as they are expected
    To resolve this, simply copy the contents of filesystem.squashfs on the iso into the usb stick.

You'll get more context in the two bug records.

Share:
15,931

Related videos on Youtube

Paul
Author by

Paul

Updated on September 18, 2022

Comments

  • Paul
    Paul over 1 year

    I am trying to load v11.04 onto my HP desktop hard drive using a USB drive. I used the same USB drive to load the system on my Dell netbook and it loaded successfully. But trying to load on the desktop I get the error

    Apt configuration problem. An attempt to configure apt to install additional packages from the CD failed

    The installer then crashes. I have nothing in the CD drive. I can boot the system from the USB drive and it works fine. I have tried all options on the load with the same crash each time. I baffled as I successfully loaded my netbook with the same USB with no problems.

    • Jayson Rowe
      Jayson Rowe over 12 years
      Hi Paul, can you boot the machine again and immediately when you see the little person and keyboard icons at the bottom center the screen, press the Space bar & select your language & then choose "Check disc for defects"? If it fails, is it possible to try re-making the USB drive? Also, what method did you use to create the USB?
    • mikewhatever
      mikewhatever over 12 years
      By load, do you mean install?
    • SPRBRN
      SPRBRN over 5 years
      I had this problem today with Ubuntu 18.04 LTS. It happened twice when installing from the same stick. After formatting the stick and putting Ubuntu back on it, the installation from stick to harddisk was OK.
    • Michael Schwartz
      Michael Schwartz about 5 years
      The source from Kodi helped me out. (Greatful as I didn't need to repartition my USB) - forum.kodi.tv/showthread.php?tid=126351
  • Pablo
    Pablo over 10 years
    Removing the script worked for me in Ubuntu 13.10. Thanks!