
ubuntu
农民小飞侠
如果放弃了,那还谈什么理想
展开
-
ubuntu 16.04 ImportError: No module named ‘softwareproperties‘
代码】ubuntu16.04ImportErrorNomodulenamed'softwareproperties'原创 2022-07-29 19:20:52 · 1251 阅读 · 0 评论 -
ubuntu 18.04安装cuda驱动
今天升级了以下内核,发现cuda驱动没了,使用下面的命令自动安装驱动的时候结果报错:解决方法参考文献[1]. 解决Unable to Correct Problems ‘You have Held Broken Packages’原创 2022-07-13 01:14:49 · 1245 阅读 · 0 评论 -
ubuntu 16.04升级到ubuntu 18.04
昨天升级了一下ubuntu,发现升级过程不是很顺利,我这里分享一下我的经验,在升级前,需要把所有的ppa软件源和相应的软件删除。然后执行下面的操作:然后就升级完成了哈,我们查看一下:[1].How to Upgrade Ubuntu 16.04 to Ubuntu 18.04. https://www.liquidweb.com/kb/how-to-upgrade-ubuntu-16-04-to-ubuntu-18-04/[2].Ubuntu – Problems removing PPA using原创 2022-07-04 10:17:47 · 1823 阅读 · 0 评论 -
ubuntu 18.04安装USB wifi接收器的驱动
最近把电脑的ubuntu 16.04升级到了18.04,然后发现USB wifi的驱动不见了,于是重新安装了一下,以下是我的安装步骤:我的ubuntu的内核是4.15.0,属于5.9以下,所以选择下面的命令:重启后就生效了其他版本请参考github的readme: https://github.com/fastoe/RTL8812BU...原创 2022-07-04 00:04:03 · 1667 阅读 · 0 评论 -
http://archive.ubuntu.com/ubuntu xenial/main amd64 tmux amd64 2.1-3build1 403 Forbidden
今天在更新ubuntu的时候出现了下面的错误:Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libevent-2.0-5 amd64 2.0.21-stable-2ubuntu0.16.04.1 403 ForbiddenErr:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 tmux amd64 2.1-3build1 403 Forbidden原创 2022-04-08 19:22:14 · 573 阅读 · 0 评论 -
ubuntu 命令行关掉visual studio code
今天ubuntu的图形界面被visual studio code搞卡了,想关掉它,界面关掉是不可能的了,所以只能用命令行,首先ssh登陆你的那台主机,然后运行:killall code是不是很简单参考文献[1].Kill vscode from the command line.https://stackoverflow.com/questions/52076242/kill-vscode-from-the-command-line...原创 2020-07-24 14:56:07 · 4910 阅读 · 0 评论 -
ubuntu pip安装xgboost的CMake 3.13 or higher is required. You are running version 3.10.2
今天在装xgboost的时候出现了下面的错误: INFO:XGBoost build_ext:Building from source. /tmp/pip-install-elc4qdig/lib/libxgboost.so INFO:XGBoost build_ext:Run CMake command: ['cmake', 'xgboost', '-GUnix Makefiles', '-DUSE_OPENMP=1', '-DUSE_CUDA=0', '-DUSE_NCCL=0', '-D原创 2020-06-29 14:44:01 · 8319 阅读 · 4 评论 -
ubuntu 安装kenlm
今天想利用kenlm来跑一个n-gram模型,发现安装起来并不是很容易,我这里分享一下我的安装过程:安装依赖sudo apt install build-essential cmake libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libeigen3-dev zlib1g-dev libbz2-dev liblzma-dev下载代码git clone https:原创 2020-06-28 11:06:30 · 834 阅读 · 0 评论 -
ubuntu 编译darknet error: ‘__args_arr’ was not declared in this scope
今天 在编译darknet的时候,出现了下面的错误:/usr/local/cuda/include/crt/host_runtime.h:19:2: warning: #warning "crt/device_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp] #warning "原创 2020-06-20 18:42:07 · 1224 阅读 · 0 评论 -
ubuntu g++: error: unrecognized command line option ‘-fno-plt’
今天在编译chineseocr_lite下面的psenet的时候出现了下面的错误:g++: error: unrecognized command line option ‘-fno-plt’Makefile:10: recipe for target 'pse.so' failedmake: *** [pse.so] Error 1make: Leaving directory '/media/data/projects/OCR/chineseocr_lite/psenet/pse'Trac原创 2020-06-20 18:13:24 · 4175 阅读 · 1 评论 -
远程连接ubuntu服务器设置ssh免密码登陆的简单方式
在工作中我们经常需要登陆服务器,但是登陆服务器就需要输入密码,这里介绍一种简单的免密码的登陆方式,这里默认服务器已经安装了ssh server,本地也安装好了ssh client,我用的是mac,本地无须安装ssh client,只需要服务器安装ssh server就行了:sudo apt-get install openssh-server首先生成ssh key,如果已经生成了,则无须...原创 2020-04-08 14:24:21 · 551 阅读 · 0 评论 -
ubuntu18.04安装了anaconda的后,让.bashrc文件在终端自动生效
今天发现每次远程登陆使用conda的时候,都会找不到conda命令,但是命名anaconda已经安装了,然后也加入到了环境变量了。后来发现,每次通过ssh打开终端,都需要每次手动生效bashrcsource ~/.bashrc解决方法在.bash_profile文件里重新引用一次.bashrcvim ~/.bash_profile添加的代码如下:if test -...原创 2020-03-17 09:43:31 · 2710 阅读 · 0 评论 -
ubuntu 安装librosa的时候出现No matching distribution found for pytest-runner
今天在安装librosa的时候出现了下面的错误:wugaosheng@s206:~$ pip3 install librosaCollecting librosa Downloading http://mirrors.aliyun.com/pypi/packages/77/b5/1817862d64a7c231afd15419d8418ae1f000742cac275e85c74b21...原创 2020-03-10 18:25:50 · 5393 阅读 · 0 评论 -
ubuntu 18.04检查服务器异常重启的日志
最近服务器老是重启,要查看原因的话,可以查看日志,日志的命令为:journalctl -xe我的日志为:3月 04 12:20:50 eric-HP-Z420-Workstation kernel: EDAC MC0: 11 CE memory scrubbing error on CPU_SrcID#0_Ha#0_Chan#2_DIMM#0 or CPU_SrcID#0_Ha#0...原创 2020-03-04 12:33:13 · 14691 阅读 · 2 评论 -
ubuntu18.04修改pip源为阿里源
最近装新机器的时候总是需要换pip下载源,索性给自己写个教程吧,以后用得着cd ~mkdir .pipcd ~/.piptouch pip.confvim pip.conf然后写入:[global]trusted-host=mirrors.aliyun.comindex-url=https://mirrors.aliyun.com/pypi/simple/按照下...原创 2020-02-22 09:49:46 · 2118 阅读 · 1 评论 -
ubuntu18.04修改密码出现Authentication token manipulation error
今天需要修改一下ubuntu18.04的密码,但是修改密码的时候,出现了下面的错误:Authentication token manipulation error网上给出的解释是没有啥权限。解决方法sudo mount -o remount,rw /加一个sudo就行了eric@eric-HP-Z420-Workstation:~$ sudo passwd er...原创 2020-02-13 15:16:37 · 1168 阅读 · 0 评论 -
ubuntu18.04 tensorflow 1.14运行程序的时候出现cuDNN failed to initialize
今天再运行程序的时候出现了下面的错误:2020-02-12 13:06:06.483007: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cp...原创 2020-02-12 13:08:23 · 2012 阅读 · 0 评论 -
ubuntu 18.04安装向日葵的时候出现缺少libwebkitgtk 3.0
今天尝试了一下在ubuntu 18.04上安装向日葵,出现了下面的错误:Package libwebkitgtk-3.0-0 is not installed解决方法sudo apt install -f利用系统命令自动安装依赖就行了,然后再安装向日葵就可以安装成功了。参考文献[1].How do I install libwebkitgtk-1.0-0 on U...原创 2020-02-05 12:46:01 · 17911 阅读 · 7 评论 -
ubuntu16.04 中matplotlib解决显示中文为方框
今天需要用matplotlib显示中文,下面及就分享一下我的个人解决过程,首先下载SimHei,下载网址为:http://www.downcc.com/font/7665.html然后打开一个py文件写入代码:import matplotlibprint(matplotlib.matplotlib_fname())会显示一个路径,我的路径为,把上面下载的SimHei放到该路径的...原创 2019-12-02 21:26:40 · 562 阅读 · 0 评论 -
ubuntu 添加cuda到bashrc环境变量
在使用下面命令的时候,会出现找不到该命令,但是cuda已经安装好了,这是因为cuda环境变量有问题,执行的命令为:nvcc -V需要添加的环境变量,我安装的是cuda-10,这里根据安装的cuda版本自行更改下面的配置, vim ~/.bashrc:export PATH=/usr/local/cuda-10.0/bin:$PATHexport LD_LIBRARY_PATH=/...原创 2019-11-28 22:25:28 · 37980 阅读 · 2 评论 -
ubuntu 16.04 W: GPG error: https://repo.fdzh.org/chrome/deb stable Release:
今天在运行:sudo apt-get update出现了下面的错误:W: GPG error: https://repo.fdzh.org/chrome/deb stable Release: The following signatures were invalid: KEYEXPIRED 1555048520 KEYEXPIRED 1555048520 KEYEXPIRED...原创 2019-11-06 23:55:14 · 2092 阅读 · 0 评论 -
ubuntu 16.04 An error occurred during the signature verification. The repository is not updated and
今天在使用:sudo apt-get update出现了下面的错误:W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used解决方法sudo apt-get clean ...原创 2019-11-06 23:46:52 · 1972 阅读 · 0 评论 -
ubuntu 16.04 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu/dists/xenial/main/binary-amd64/Packa
今天在运行:sudo apt-get update出现了有些源404错误:W: The repository 'http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release' does not have a Release file.N: Data from such a repository can't be...原创 2019-11-06 23:37:39 · 1537 阅读 · 0 评论 -
ubuntu 18.04 Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accura
今天在安装tensorflow-gpu版本的时候,出现了下面的错误:Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial ...原创 2019-11-05 21:12:30 · 530 阅读 · 0 评论 -
ubuntu 16.04 getdata.sh: 7: getdata.sh: [[: not found
今天在运行transformer-xl的脚本的时候,出现了下面的错误:=== Acquiring datasets ===---getdata.sh: 7: getdata.sh: [[: not found- Downloading WikiText-103 (WT2)getdata.sh: 19: getdata.sh: [[: not found- Downloading e...原创 2019-10-27 21:21:21 · 334 阅读 · 0 评论