-2

I'm very much a beginner using Ubuntu 16.04.

From this page, VirtualBox - RTR3InitEx failed with rc=-1912 (rc=-1912)

I followed this instruction among others from Ravexina:

mkdir ~/apt-tmp
sudo mv /etc/apt/sources.list.d/* ~/apt-tmp  

When I finished, I noticed this warning from Asme Just:

sudo mv /etc/apt/sources.list.d/* ~/apt-tmp by doing this, sudo apt-get install won't install any other software after. So don't forget to move it back – Asme Just Aug 23 '17 at 8:35

To where should I move it back, and how? I confess that I'll need the script to type.

Thanks very much.

1 Answers1

3

The command

mv /etc/apt/sources.list.d/* ~/apt-tmp

moves all the contents of /etc/apt/sources.list.d/ to directory ~/apt-tmp

To move them back, you can use

sudo mv ~/apt-tmp/* /etc/apt/sources.list.d/

Note that the directory may have been empty, unless you have installed 3rd party software (since the main repositories are in a separate file /etc/apt/sources.list)

steeldriver
  • 142,475