How to fix target packages (stable/binary-amd64/Packages) is configured multiple times

W: Target Packages (stable/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target Translations (stable/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target DEP-11 (stable/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target DEP-11 (stable/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target DEP-11-icons-small (stable/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target DEP-11-icons (stable/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target Packages (stable/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target Translations (stable/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target DEP-11 (stable/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target DEP-11 (stable/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target DEP-11-icons-small (stable/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target DEP-11-icons (stable/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list.d/docker.list:1 

When I run sudo apt update. I was trying to to blockchain so installed Dockers, How can I remove the lists which are configures multiple times?

Unittests RESTful API – django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured

Когда пытаюсь запустить тесты, интерпретатор выдает следующую ошибку:

>     django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either > define the environment variable DJANGO_SETTINGS_MODULE or call > settings.configure() before accessing settings. 

Всем ответам заранее благодарен.

xrandr once configured, it resets after new reboot, keep restarting INVERTED

There is an HP notebook Pavillion DV6 4gb ram, 15 inch monitor single, HDMI and VGA connections, processor AMD A6. Successfully installed this Ubuntu 19 release. But, after a reset, it keep running monitor display 180 degrees rotated. Then , I use xrandr with NORMAL option, and it works only in my session: xrandr –output LDVS –rotate normal After a reboot, in a new session, the monitor appears INVERTED again. By the other hand, after adjusting monitor screen intensity with keypad buttons, after a reboot the screen appears with TOTAL light adjustment, again. How can I permanently set my config options.? Thanks in advance.

Databricks command says databricks-cli isn’t configured when run from Python (with os.system()) but works fine when pasted into command line

My Python code constructs a string in the form
myCmd = 'databricks fs cp dbfs:/mnt/extracts/dsp/{}/full.xml "{}"'.format(extractId, file_path)

This results in a string like this: databricks fs cp dbfs://mt/extracts/dsp/123/full.xml c:\filepath\full.xml

When I attempt to run this string using os.system(myCmd) I’m given the following warning (either within the Python console, or in the cmd window):
Error: InvalidConfigurationError: You haven't configured the CLI yet! Please configure by entering `C:\Users\xxxx\AppData\Local\Continuum\anaconda3\Scripts\databricks configure

But when i copy and paste the constructed myCmd to the command prompt the databricks copy works fine.

hosts file: does it pass the domain name? I’m always redirected to the main site configured on the host

My server IP address is 123.456.789.123.

Pointing my browser to 123.456.789.123 (http://123.456.789.123) the server serves me site alpha.

Now I’ve configured a second site: beta.

Site beta is still online served from my old server with IP 321.987.654.321.

So, to reinstall and reconfigure it on the new server, I edited my hosts file this way, so it calls the new server when I go to domain beta.com:

## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost 123.456.789.123 beta.com www.beta.com 

The problem is that when I point my browser to http://www.beta.com, I see alpha.com, the same site I see if I go to http://123.456.789.123.

On 123.456.789.123, I have two different vhosts file: one for alpha and one for beta.

They are like this:

<VirtualHost *:80>     # The ServerName directive sets the request scheme, hostname and port that     # the server uses to identify itself. This is used when creating     # redirection URLs. In the context of virtual hosts, the ServerName     # specifies what hostname must appear in the request's Host: header to     # match this virtual host. For the default virtual host (this file) this     # value is not decisive as it is used as a last resort host regardless.     # However, you must set it for any further virtual host explicitly.     ServerName alpha.com     ServerAlias www.alpha.com      ServerAdmin my.email@gmail.com     DocumentRoot /var/www/alpha.com/public_html      # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,     # error, crit, alert, emerg.     # It is also possible to configure the loglevel for particular     # modules, e.g.     #LogLevel info ssl:warn      ErrorLog /var/www/alpha.com/log/error.log     CustomLog /var/www/alpha.com/log/access.log combined      # For most configuration files from conf-available/, which are     # enabled or disabled at a global level, it is possible to     # include a line for only one particular virtual host. For example the     # following line enables the CGI configuration for this host only     # after it has been globally disabled with "a2disconf".     #Include conf-available/serve-cgi-bin.conf      # This will allow the use of .htaccess files to configure a single folder     <Directory /var/www/alpha.com>         AllowOverride All     </Directory> </VirtualHost> 

Any ideas about how can I see the site beta? It seems that the hosts file simply calls 123.456.789.123, but without passing the domain I’m asking for and so the server responds with the default one and not with the site I’m asking for: beta.com.

Configured packages multiple times. No access to packages updates Kubuntu 18.04

drew@HP-PAVILION:~$ sudo apt update Ign:1 tris-team-ubuntu-lutris-bionic.list:10 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:62 and /etc/apt/sources.list:76 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:62 and /etc/apt/sources.list:77 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:2 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:17 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11-icons-small (main/dep11/icons-48×48.tar) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11-icons (main/dep11/icons-64×64.tar) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11-icons-hidpi (main/dep11/icons-64×64@2.tar) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11-icons-large (main/dep11/icons-128×128.tar) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:62 and /etc/apt/sources.list:76 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:62 and /etc/apt/sources.list:77 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:2 and /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:3 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:2 and /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:4 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:2 and /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:5 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:2 and /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:6 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:2 and /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:7 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:2 and /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:8 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:2 and /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:9 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:2 and /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-bionic.list:10 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:2 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:17 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11-icons-small (main/dep11/icons-48×48.tar) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11-icons (main/dep11/icons-64×64.tar) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11-icons-hidpi (main/dep11/icons-64×64@2.tar) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target DEP-11-icons-large (main/dep11/icons-128×128.tar) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:1 and /etc/apt/sources.list.d/paulo-miguel-dias-ubuntu-pkppa-bionic.list:16 drew@HP-PAVILION:~$ *NOTEDue to my new user status i had to erase the links