Trouble Setting up curl for fast.ai (Ubuntu 18.04)

Quick remark: I’m using Ubuntu 18.04 and I posted the same topic on http://forums.fast.ai/

I tried typing the curl command ( curl http://files.fast.ai/setup/paperspace | bash ) to install all the necessary tools for the course and I keep getting the following error

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
100 1944 100 1944 0 0 9969 0 --:–:-- --:–:-- --:–:-- 9969

  • DEBIAN_FRONTEND=noninteractive
  • sudo rm ‘/etc/apt/apt.conf.d/ .
    rm: cannot remove ‘/etc/apt/apt.conf.d/ . ’: No such file or directory

I think my apt.conf.d is in a different location (/home/paperspace/.chdist/hardy/etc/apt/apt.conf.d)
How do I solve this issue? I tried googling with no lead so far

I’m not familiar with paperspace or the fastai lib, but it just looks like /etc/apt/apt.conf.d/ is empty.
Could you just try to create a dummy file with sudo touch /etc/apt/apt.conf.d/proxy.conf and try it again?

1 Like

It worked! I’m a noob who’s grateful of your wisdom :slight_smile:

1 Like

Sadly I got a different error after an hour of the curl process

paperspace@psiwjf1oj:~$ sudo touch /etc/apt/apt.conf.d/proxy.conf

paperspace@psiwjf1oj:~$ curl http://files.fast.ai/setup/paperspace | bash

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1944 100 1944 0 0 11302 0 --:–:-- --:–:-- --:–:-- 11302

paperspace@psiwjf1oj:~$ sudo apt --fix-broken install

Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following additional packages will be installed:
nvidia-410
The following NEW packages will be installed:
nvidia-410
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
8 not fully installed or removed.
Need to get 0 B/97.4 MB of archives.
After this operation, 394 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 157640 files and directories currently installed.)
Preparing to unpack …/nvidia-410_410.48-0ubuntu1_amd64.deb …
Unpacking nvidia-410 (410.48-0ubuntu1) …
dpkg: error processing archive /var/cache/apt/archives/nvidia-410_410.48-0ubuntu1_amd64.deb (–unpack):
trying to overwrite ‘/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0’, which is also in package libglx-mesa0:amd64 18.0.5-0ubuntu0~18.04.1
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-410_410.48-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Apparently there’s issue with 18.04 (Trying to resolve 18.04 NVIDIA issue (broken package manager)). I’m going to follow the instructions and see the results

So I didn’t find a direct solution. Jeremy Howard, the creator of fast.ai, created a template computing service that has most of the installed packages called fast.ai on paperspace. I bought the template and I haven’t had any issues with existing packages. Pytorch developer conference 2018 was really fun by the way :slight_smile:

1 Like

Hello,
I have got a problem, when I execute the command: curl http://files.fast.ai/setup/paperspace | bash

I get this error:
Errors were encountered while processing:
/tmp/apt-dpkg-install-6TPXi2/115-nvidia-410_410.79-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I’m working with Paperspace, in a virtual machine with Ubuntu 18.04.
I hope someone can help me.
Thank you,
Carlos.

I have solved my problem with this commands:
sudo dpkg --configure -a

After that I had this other error:

Errors were encountered while processing:
_ /var/cache/apt/archives/nvidia-410_410.79-0ubuntu1_amd64.deb_
E: Sub-process /usr/bin/dpkg returned an error code (1)

And I solved with that command:
sudo apt-get -o Dpkg::Options::="–force-overwrite" install --fix-broken

1 Like