Paperspace Error

I tried searching but could not find a thread. Getting an error setting up the files with the curl command.
curl | bash

rm: cannot remove ‘/etc/apt/apt.conf.d/.’: No such file or directory

Anyone know how to fix this?


@bernardo can you try a sudo apt-get update and a machine restart? If you are still seeing issues definitely send us the machine info (base OS, type, etc) to

Hi @dillon,

Thanks for the reply. I thought I needed to run the curl script within the Fastai template. After I realized my mistake, everything was already set up as needed. Thank you for the response. I tried to delete my post but couldn’t see how.

1 Like

I have exaclty the same error when I run:
curl | bash

How do you fix it?

If you’re using the fastai template, you don’t need to run this part. Everything is already installed. Just move ahead. :smile:


For those that are using an AWS instance like myself (p2.xlarge), I ran into this issue as well. I just removed the following line from the bash script:

sudo rm /etc/apt/apt.conf.d/*.*

Created my own bash file on the server and ran the script. Fixed the issue for me.

1 Like

I found a simple fix to be just create a dummy file in the /etc/apt/apt.conf.d direction

sudo touch /etc/apt/apt.conf.d/test.txt

Then re run the original command and now something is in there to be deleted.


Thanks for the quick fix! worked like a charm

Thanks, this one line of code solve the problem

Amazing… worked like a charm!


Thanks very much!!

I use fastai template but I do not think everything is already installed. For instance, there is no data folder.