-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.

6
  • 1
    With such non-beginner actions you can completely break and destroy your system. Take such actions with caution. Moreover with moved source lists from /etc/apt/sources.list.d you will get obsolete/locally-installed packages and/or broken dependencies. If you want to learn by hard way - install Ubuntu on VM and play with system here (ofcourse with snapshot of clean installation).
    – N0rbert
    Jul 18, 2018 at 20:55
  • 1
    @N0rbert Of course installing VBox in a VM is not the best thing to try ;-)
    – Bruni
    Jul 19, 2018 at 9:21
  • 1
    @medusa193 The post you linked to does not contain the instructions you have obviously followed.
    – Bruni
    Jul 19, 2018 at 9:24
  • 1
    @Bruni then I completely can't understand the main idea behind OP question ;)
    – N0rbert
    Jul 19, 2018 at 9:48
  • 1
    Sorry. The links were side by side in my history list; here's the correct post: askubuntu.com/questions/900794/…
    – medusa193
    Jul 19, 2018 at 17:33

1 Answer 1

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)

3
  • Thanks, steeldriver! Given my erroneous link, if the proper page and instructions I followed make any difference, here it is: askubuntu.com/questions/900794/…
    – medusa193
    Jul 19, 2018 at 17:35
  • @medusa193 I've seen it - but I don't understand what you're asking. Is there something still unclear? Jul 20, 2018 at 13:48
  • Okay; no, nothing's unclear. Thanks for helping a beginner; your advice apparently worked like a charm! I really appreciate it. :)
    – medusa193
    Jul 21, 2018 at 15:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .