nvidia: apt --fix-broken install -o DPkg::options::=“–force-overwrite”
powershell 中无法 conda activate
tensorflow 2.3 无 GPU:github solution stackoverflow solution
win10安装双系统ubuntu(使用ventory,最新教程!!!)
windows pip安装模块出现Could not fetch URL https://mirrors.aliyun.com/pypi/simple/pip/
Exception: ROM is missing for ms_pacman, see https://github.com/openai/atari-py#roms for instructions
how to fix ethernet connected but no internet access
Python 环境问题收集
hexo+yilia修改代码块等样式
- ubuntu 18.04(16.04 not have) electron ssr connection error
echo alias python=python3 >> ~/.bashrc
- steam error “find: ‘/home/inf/.steam/ubuntu12_32/steam-runtime’: No such file or directory”
mkdir /home/$USER/.steam/ubuntu12_32/steam-runtime
-
y
o
u
t
u
b
e
youtube
youtube回到传统模式
cookies的PREF添加"&f6=8" - ubuntu强制解锁
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
If nothing else worked, you can remove the apt lock file and see if that fixes the issue on your Ubuntu / Debian / Linux Mint (and any system that uses APT) system:
sudo rm /var/lib/apt/lists/lock
If you’re still getting errors about either the apt
cache lock (/var/cache/apt/archives/lock
) or the dpkg
lock (/var/lib/dpkg/lock
), you can remove them:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
A package reconfiguration may also be needed after this, as well as fixing any potentially broken packages:
sudo dpkg --configure -a
sudo apt install -f
In some situations you might see a similar error, but for which says lock-frontend instead of just lock:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
This dpkg lock-frontend error means a graphical application that uses dpkg / apt, is currently running, like Synaptic package manager, Gdebi or some other. The solution in this case is to close the application and try again. In 99% of cases this should solve the issue. If it persists, try to reboot the system, and only as a last resort remove the /var/lib/dpkg/lock-frontend file.
If you do remove the /var/lib/dpkg/lock-frontend file, you’ll then most probably run into the Could not get lock /var/lib/dpkg/lock error mentioned in the beginning of the article, so you’ll have to start from the top of this article with the instructions to fix this.
- (未kxsw)stackoverflow打开慢
replace google cdn - tensorflow安装
win10 配置tensorflow gpu版 - kali换源后报错
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
- hexo cho主题canvas-nest显示问题
更改前:
script(type='text/javascript', color=color, opacity=opacity, zIndex=zIndex, count=count,src='//lib.baomitu.com/canvas-nest.js/2.0.4/canvas-nest.umd.js')
更改后:
script(type='text/javascript', color=color, opacity=opacity, zIndex=zIndex, count=count,src='//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js')
- mathjax更换cdn
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- 替换为以下网址 -->
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML
- hexo支持mathjax
解决方案有很多, 目前自己用的是换 p a n d o c pandoc pandoc引擎
npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-kramed --save
跟换引擎后行间公式可以正确渲染了,但是这样还没有完全解决问题,行内公式的渲染还是有问题,因为hexo-renderer-kramed引擎也有语义冲突的问题, 找到node_modules\kramed\lib\rules\inline.js,把第11行的escape变量的值做相应的修改:
//escape: /^\\([\\`*{}\[\]()#$+\-.!_>])/,
escape: /^\\([`*\[\]()#$+\-.!_>])/
这一步是在原基础上取消了对,{,}的转义(escape)。
同时把第20行的em变量也要做相应的修改。
//em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
em: /^\*((?:\*\*|[\s\S])+?)\*(?!\*)/
- hexo其他问题
crlf warning autocrlf = false safecrlf = false
git remote add origin-https https://github.com/2inf/2inf.github.io.git
git push -u origin-https master
- 树莓派安装ubuntu-mate
修改/boot/config.txt 强制HDMI显示 hdmi_force_hotplug=1
把#hdmi_group=1改成hdmi_group=2
然后把#hdmi_mode=1改成hdmi_mode=28 - sublimetext c++配置
{
"path": "E:/MinGW/mingw64/bin",
"shell_cmd": "g++ -std=gnu++14 -Wall -Wextra \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++, source.cpp",
// {
// "name": "Debug",
// "shell_cmd" : "start cmd /c \"gdb \" ${file_path}/$ {file_base_name}\"\""
// }
"variants":
[
{
"name": "Run",
"windows":{
"shell_cmd" : "start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""
},
"shell": true,
},
{
"name": "Run in Terminal",
"windows":{
"shell_cmd" : "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" -std=gnu++14 -Wall -Wextra -Wfatal-errors -Wl,--stack=268435456 -g && start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""
//"shell_cmd": "g++ -std=gnu++14 -Wall -Wextra -Wfatal-errors -Wl,--stack=268435456 \"${file}\" -o \"${file_path}/${file_base_name}\" -DLOCAL_DEFINE && start cmd /k $file_base_name"
//"shell_cmd": "g++ -std=gnu++14 -Wall -Wextra -Wfatal-errors -Wl,--stack=268435456 \"${file}\" -o \"${file_path}/${file_base_name}\" && start \"$file_base_name\" call $file_base_name"
},
"shell": true,
},
{
"name": "Debug",
"windows":{
"shell_cmd" : "start cmd /c gdb \"${file_path}/${file_base_name}\""
},
"shell": true,
}
]
}
{"keys": ["f9"], "command": "build", "args": {"select": false}},
{"keys": ["f10"], "command": "build", "args": {"variant": "Run"}}