Tag Archives: ubuntu

Some index files failed to download. They have been ignored, or old ones used instead

Some index files failed to download. They were ignored, or replaced with old ones.

When you are using

sudo apt-get update

fail and show

Some index files failed to download. They have been ignored, or old ones used instead

You can try

sudo su
vim /etc/resolv.conf

add

nameserver 8.8.8.8

and retry

sudo apt-get update

It will work
good luck!

Ubuntu cannot access USB device, failed to create a proxy device for the USB device

Ubuntu cannot access the USB device, Failed to create a proxy device for the USB device

method one: trying to install VirtualBox Extension Pack, address: https://www.virtualbox.org/wiki/Downloads. The WARNING in USB setting will disappear. Also: All warnings of Virtual Box should be alert and try to handle, or the OS inside the sandbox will be buggy.


method failed, try: https://superuser.com/questions/1136607/virtualbox-usb-capture-issue-windows-7-host-guest

Win10 system virtual machine installation of Ubuntu system failed, prompt: UBI language failed with exit code 1

yesterday I tried to install ubuntu under the virtual machine of win10 system on my new computer. As a result, I tried to install several versions of ubuntu one after another, but failed. “Ubi-language failed with exit code 1. Further information may be found in /var/log/syslog. Do you want to try running this step again before continuing?If you do not, your installation may fail entirely or be broken.

the bug report interface links: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/906015

solution: clear the current installation record, download ubuntu16.04 version, reinstall, install successfully.

Ubuntu download link: https://www.ubuntu.com/download/ubuntu-kylin
Reference the install link:

http://blog.csdn.net/jimmylincole/article/details/13168989

Failed to enable APR appears when the cmder of ubutun system in win subsystem installs Apache_ TCP_ DEFER_ ACCEPT

problem:

under the Ubutun system cmder under the WIN subsystem
execute 1. sudo apt-get install apache2

2. sudo/etc/init. D/apache2 restart

* Restarting Apache HTTPD web server Apache 2

[core:warn] [pid 9570:tid 139815888750464] (92)Protocol not available: AH00076: Failed to enable APR_TCP_DEFER_ACCEPT

solution:

sudo vi open /etc/apache2/apache2. Conf , the bottom add a line in the file the following contents:


  1. AcceptFilter http none

and then restart Apache2 to resolve the problem.

error:Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused;error:couldn‘t ….

error : MongoDB shell version: 2.6.10
connecting connecting to: test
2020-01-06T19:04:40.945+0800 warning: Failed to connect to 127.0.0.1:27017, reason: Errno :111 Connection union 40
2020-01-06 t19:04:40. 946+0800 Error: Couldn ‘t connect to server 127.0.0.1:27017 (127.0.0.1), the connection attempt failed at the SRC/mongo/shell/mongo. Js: 146
I am under a virtual machine, download the mongo, want to get into mongo library, found an error (above), the Internet a lot, according to their way to try many, but is not go, Later, I found that because I did not enter into the docker image (just started to contact the image)
, I learned from docker image , and learned

by virtue of virtual machine

step 1 , switch to su root, check all images under docker images

step 2 , if no mongo, pull mongo through docker pull mongo official website, if you have pulled direct operation step 3

step 3 0, Start container docker run-dit –name mymongodb-p 27017:27017 mongo



step 4 , open container docker exec-it mymongodb bash, enter mongo
appear the pattern in the blue circle, indicating that you have entered mongo, directly enter the command statement to operate

VBoxClient (seamless): failed to start. Stage: Setting guest IRQ filter mas Error: VERR_INTERNAL_ERR

ubuntu17.10 install enhancements, if the interface has VBoxClient (seamless): failed to start. Stage: Setting guest IRQ filter mask Error: VERR_INTERNAL_ERROR

(added: ubuntu18.04 install enhancements, if you do not cancel the 3D acceleration, restart will not enter the page)

to these commands:

sudo apt-get install gcc make perl
cd /media/$USER/<...>
sudo ./VBoxLinuxAdditions.run
sudo reboot

NVIDIA NVML Driver/library version mismatch

if Cuda and Nvidia drivers mismatch, the nvidia-smi command mismatches with Nvidia NVML Driver/library version mismatch, and needs to check the version of the Nvidia Driver to see if it matches.

enter the command as follows:

ubuntu-drivers devices

will show:

driver: nvidia-driver-418-server-distro non-free

driver: nvidia-driver-440-server-distro non-free:

driver: nvidia-driver-435-distro non-free

driver: nvidia-driver-440-distro non-free

Distro free builtin

driver: xserver-xorg-video-nouveau-distro free builtin

directly install all, command as follows:

sudo ubuntu-drivers autoinstall

then reboot

sudo reboot

use nvidia-smi command, found that you can see the graphics card information, and CUDA model 10.2, Driver version 440, successful match.

Tue Aug 4 21:05:21 2020

+—————————————————————————–+

Driver Version: 440.95.01 CUDA Version: 10.2 |

|——————————-+———————-+———————-+

| GPU Name Persistence-M| bb-id disp.a | Volatile uncorr.ecc |

| Fan Temp Perf Pwr:Usage/Cap| memory-usage | gpu-util Compute m. |

|===============================+======================+======================|

| 0 GeForce RTX 208… Off | 00000000:7 p.m. Off | 0 N/A |

23 c | 41% P8 2 12 mib/11019 w/260 w | mib | 0% Default |

+——————————-+———————-+———————-+

Installation and use of XmR stak CPU

XMR stak – CPU install

xmr-stak-cpu is an open source software used for calculation of CPU , the following is recorded in the installation process

under ubuntu17.04

sudo apt-get -y install git
git clone https://github.com/fireice-uk/xmr-stak-cpu.git
sudo apt-get -y install libmicrohttpd-dev libssl-dev cmake build-essential
cd xmr-stak-cpu/

at this point you can select the proportion of contributors to donate
edit donate-level. H

After the

changes are complete, compile and install

cmake -DHWLOC_ENABLE=OFF .
make install

XMR stak – CPU use

edit XMR - stak - CPU/bin/config. TXT

cat /proc/cpuinfo | grep processor view total number of threads n

change cpu_threads_conf into the following content, threads quantity is about CPU total number of threads 2/3,
to use e5-2665 for example, a total of 0 161 threads, using 2 103 threads with the highest efficiency.

"cpu_threads_conf" :
[
   { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
   { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
   { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
   { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 },
   { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
   { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 },
   { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },
   { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 7 },
   { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 8 },
   { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 9 },
],

if using nicehash, it is recommended to set "nicehash_nonce" : true,

change address and other information (nicehash for example)

"pool_address" : "cryptonight.hk.nicehash.com:3355",
"wallet_address" : "your-bitcoin-wallet-address.any-name-you-like",
"pool_password" : "x",

then, under xmr-stak-cpu/bin folder execute ./xmr-stak-cpu is ready to calculate
press h key display rate (the first few seconds may be 0, don't worry)

MEMORY ALLOC FAILED: mmap failed

may show that MEMORY ALLOC FAILED: mmap FAILED
problem does not need to be solved, because the measurement on the author's machine has no effect, but the following solution is still provided.
solution:

sudo sysctl -w vm.nr_hugepages=128

in addition, the /etc/security/limits the conf add

* soft memlock 262144
* hard memlock 262144

exit and log back in

background run

everything is in place, let the program run in the background
nohup./xmr-stak-cpu &
and then CTRL c exit

run top to see

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND     
25706 svr       20   0 1044224  20616   7136 S 998.7  0.3   8:42.80 xmr-stak-cpu
25720 svr       20   0   46076   4224   3464 R   0.3  0.1   0:00.23 top         
    1 root      20   0  205088   7436   5436 S   0.0  0.1   0:05.40 systemd  

The

program is running correctly in the background.

Failed to download package files error after re installing Ubuntu

:

afternoon after reinstalling the Ubuntu virtual system, the “failed to download package files” error

appeared when downloading the software or updating the package

address:

modify the download source Settings

  1. press Alt+ F2 and enter softwa-property-gtk.
  2. changes the download location to “master server” or another server near your country of residence.
    select other select good Chinese site. If you’re in a university, tsinghua or another university is the.edu. Cn suffix. Choose Ali in China can also, or click choose the best server to let the system choose.

Reference

https://askubuntu.com/questions/73997/how-do-i-fix-a-failed-to-download-package-files-error

Failed to add /run/systemd/ask-password to directory watch: No space left on device?

cloud server after docker is installed successfully, enter the start command:

sudo service docker start

system threw an exception: Failed to add /run/systemd/ask-password to directory watch: No space left on device

check the server space usage and find that it is not a server space problem. Upon examination, it was found that the following method could be used:

for immediate effect: add monitoring space

on the command line

sudo -i
echo 1048576 > /proc/sys/fs/inotify/max_user_watches
exit

or you can modify the configuration file to make monitoring long term:

sudo vim /etc/sysctl.conf

and then add:

to the end of the file

fs.inotify.max_user_watches=1048576

save and exit, and then enter the start docker command.

Installing the Ubuntu system, an error wslregisterdistribution failed with error: 0x8007019e

installing the ubuntu system in the Windows app store, WslRegisterDistribution failed with error: 0x8007019e

1.

Installing, this may take a few minutes...
Installation Failed!
Error: 0x8007019e
Press any key to continue...

2. Reason:

Windows subsystem support not installed.

3. Solution:
1. Win +x, select Windows PowerShell (administrator)
2. Input:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

3. Enter, type Y, restart! 4. Reopen the installed subsystem, wait a few minutes, and enter your account and password.