Ubuntu

Can't install Docker - Hash sum mismatch (Ubuntu 18.04, Vagrant, Virtualbox)

蓝咒 提交于 2021-01-21 05:10:57
问题 I just can't install Docker in a fresh image of Ubuntu 18.04 (in Virtualbox, using Vagrant). I am using the instruction from the official site: https://docs.docker.com/install/linux/docker-ce/ubuntu/ Or the short command from https://github.com/docker/docker-install: curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh And always got the same errors - Hash sum mismatch : Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce_19

Can't install Docker - Hash sum mismatch (Ubuntu 18.04, Vagrant, Virtualbox)

感情迁移 提交于 2021-01-21 05:09:30
问题 I just can't install Docker in a fresh image of Ubuntu 18.04 (in Virtualbox, using Vagrant). I am using the instruction from the official site: https://docs.docker.com/install/linux/docker-ce/ubuntu/ Or the short command from https://github.com/docker/docker-install: curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh And always got the same errors - Hash sum mismatch : Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce_19

Ubuntu root用户 ssh登陆

十年热恋 提交于 2021-01-21 05:06:55
#Ubuntu root用户 ssh登陆 1.BudgetVM注册完成,做好系统后发现 用root ssh登录不了 使用BudgetVM控制台的Serial Console (KVM)功能, 可以基于网页版ssh登陆进去, 但不是root用户 2.修改root用户密码 ~# passwd root 3.对ssh服务进行配置 ~# vi /etc/ssh/sshd_config 找到PermitRootLogin, 不论后面跟着no还是no-permission还是啥, 把这一行改成 PermitRootLogin yes 4.重启 ssh 服务 ~# service ssh restart 5.在客户端用root用户密码ssh登陆即可 来源: oschina 链接: https://my.oschina.net/u/864321/blog/304812

Execute shell script everytime a new user is created

…衆ロ難τιáo~ 提交于 2021-01-21 04:23:08
问题 What would be the easiest way to execute a command everytime a new user is added? I checked through /etc/adduser.conf but nothing is in there which looks like it will do this? I thought about added it to the users .bashrc so it jsut executes when they login, but I would rather have it setup before they have logged in. Any Help would be appreciated. 回答1: From man adduser : If the file /usr/local/sbin/adduser.local exists, it will be exe‐ cuted after the user account has been set up in order to

Execute shell script everytime a new user is created

删除回忆录丶 提交于 2021-01-21 04:22:26
问题 What would be the easiest way to execute a command everytime a new user is added? I checked through /etc/adduser.conf but nothing is in there which looks like it will do this? I thought about added it to the users .bashrc so it jsut executes when they login, but I would rather have it setup before they have logged in. Any Help would be appreciated. 回答1: From man adduser : If the file /usr/local/sbin/adduser.local exists, it will be exe‐ cuted after the user account has been set up in order to

ap_pass_brigade failed in handle_request_ipc function

元气小坏坏 提交于 2021-01-21 04:08:21
问题 A page is resulting in a 500 error and the log shows this: [Wed Mar 20 11:19:23 2013] [warn] [client 127.0.0.1] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function It is occuring on a lemonstand website, when you try to view 90 products on a category page. The step from 60 per page to 90 appears to be too many, and it results in a 500 error. The page loads for no more than around 4 seconds before the error, and there are many other websites running

ap_pass_brigade failed in handle_request_ipc function

不羁岁月 提交于 2021-01-21 04:06:19
问题 A page is resulting in a 500 error and the log shows this: [Wed Mar 20 11:19:23 2013] [warn] [client 127.0.0.1] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function It is occuring on a lemonstand website, when you try to view 90 products on a category page. The step from 60 per page to 90 appears to be too many, and it results in a 500 error. The page loads for no more than around 4 seconds before the error, and there are many other websites running

ap_pass_brigade failed in handle_request_ipc function

不问归期 提交于 2021-01-21 04:05:42
问题 A page is resulting in a 500 error and the log shows this: [Wed Mar 20 11:19:23 2013] [warn] [client 127.0.0.1] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function It is occuring on a lemonstand website, when you try to view 90 products on a category page. The step from 60 per page to 90 appears to be too many, and it results in a 500 error. The page loads for no more than around 4 seconds before the error, and there are many other websites running

IDEA激活教程

戏子无情 提交于 2021-01-21 02:09:23
1,下载破解补丁; https://pan.baidu.com/s/1LcXvupL00XTU-HHE1J6ynA 提取码: 8t1w 下载补丁文件 jetbrains-agent.jar 并将它放置到 idea安装目录的\bin目录下 2,点击试用; 进入idea软件界面后,点击激活窗口的“Evaluate for free”免费试用; (这里用PyCharm代替,其实都是一样的) 3,修改配置文件; 配置文件修改已经不在bin目录下直接修改,而是通过idea修改! 进入到项目界面后,点击idea最上面的菜单栏中的 “Help” -> “Edit Custom VM Options …”。 在打开的vmoptions编辑窗口末行添加:-javaagent:你idea的安装目录\jetbrains-agent.jar 修改完配置文件之后重启idea; 修改完配置文件之后重启idea; 修改完配置文件之后重启idea; 如果错误则会出现idea打不开的情况,这时候可以删除用户配置目录下的idea文件夹(能打开idea就不要删除): idea 文件夹 , 注意这个文件夹是隐藏目录! windwos:C:\Users\用户名\ macos:~/Library/Preferences/ ubuntu:~/. 4,输入激活码; JQE11SV0BR

Ubuntu 20.04 upgrade, Python missing libffi.so.6

馋奶兔 提交于 2021-01-20 18:47:48
问题 I recently upgraded my OS to Ubuntu 20.04 LTS. Now when I try to import a library like Numpy in Python, I get the following error: ImportError: libffi.so.6: cannot open shared object file: No such file or directory I tried installing the libffi package, but apt can't locate it : sudo apt-get install libffi Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libffi 回答1: If you are using pyenv, you should just uninstall the used