Ubuntu常见问题解决方法

来源:互联网 发布:苹果mac爱奇艺视频 编辑:程序博客网 时间:2024/06/16 22:19

apt-get常见问题

异常详细信息如下:dpkg status database is locked by another process

sudo rm /var/lib/dpkg/locksudo dpkg --configure -a

然后重新安装包。

You might want to run ‘apt-get -f install’ to correct these:The following packages have unmet dependencies:

sudo apt-get install -f

然后重新安装包。

软件包 sougoupinyin 需要重新安装,但是我无法找到相应的安装文件 ”

sudo rm -rf /var/lib/dpkg/info/sougoupinyin*sudo dpkg --remove --force-remove-reinstreq sougoupinyin

说明: 这里把sougoupinyin替换为你的出错的软件包名称即可。

当make遇到-lopencv_dep_cudart这样的问题的时候

在CMake缓冲文件中将cmake变量CUDA_USE_STATIC_CUDA_RUNTIME置为OFF,或者在link.txt文件中将-lopencv_dep_cudart去掉

新加卷重命名

step1. 按win键调出Dash主页搜索框,搜索“磁盘实用工具(disks)”;
step2. 在左侧存储设备(S)中选择对应的驱动器,在右侧界面中部选择对应的卷(V);
step3. 选中该卷,并在下方选项按钮中单击“卸载卷(M)”;
step4. 卸载后,下方按钮会多一个“编辑文件系统卷标(L)“的选项,单击并修改;
step5. 应用更改后,单击“挂载卷”即可。

ctrl+alt+f1黑屏

/etc/default/grub
修改GRUB_CMDLINE_LINUX_DEFAULT的值为nomodeset
sudo update-grub
重启

No apport report written because the error message indicates its a followup error from a previous failure.Errors were encountered while processing:

ros-kinetic-librealsense
ros-kinetic-realsense-camer

apt-get purge xxx然后再apt-get autoremove

git错误:fatal: The remote end hung up unexpectedly

git config http.postBuffer 524288000

chrome浏览器开了代理无法访问https

sudo apt-get install libnss3-1d

linux设备或串口重启后需要重新授权

将当前用户加入该设备用户组即可读写

#ll查看用户组ll /dev/i2c-1 #我查看的是i2c串口,替换成你自己的设备#crw-rw---- 1 root i2c 89, 1 Apr  1 10:55 /dev/i2c-1这里看到所有者是root 用户组是i2cgroups+用户名 #查看当前用户属于哪些用户组#ubuntu : ubuntu adm dialout sudo audio video keyik可以看到ubuntu这个用户属于这些组sudo usermod -a -G i2c ubuntu #将ubuntu这个用户加入i2c用户组,注意-a是添加到用户组不会从原来的用户组移除#再查看是否添加成功groups+用户名#ubuntu : ubuntu adm dialout sudo audio video i2c#可以看到添加成功

crontab报错 /bin/sh: 1: root: not found

错误的写法是

* * * * * root /home/command.sh

正确的写法是 去掉root 因为crontab把root 当成脚本了

* * * * * /home/command.sh

ubuntu nl80211: Could not configure driver mode

sudo nmcli nm wifi offsudo rfkill unblock wlansudo ifconfig wlan0 10.15.0.1/24 upsleep 1sudo service isc-dhcp-server restartsudo service hostapd restart

The first two lines stop wlan from network manager, and then unblocks the interface, so ifconfig can work.
UPDATE: But if for the first command you get the error message Error: Object 'nm' is unknown then use this instead:

sudo nmcli radio wifi off

ubuntu Wi-Fi NetWorks device not managed

vim /etc/NetworkManager/NetworkManager.conf

[main]plugins=ifupdown,keyfiledns=dnsmasq[ifupdown]managed=false[keyfile]unmanaged-devices=mac:00:26:2d:fd:5c:e0

changed to

[main]plugins=ifupdown,keyfiledns=dnsmasq[ifupdown]managed=false#[keyfile]#unmanaged-devices=mac:00:26:2d:fd:5c:e0

linux下出现ping:unknown host www.baidu.com问题时的解决办法——ubuntu下局域网络的配置

    echo 'nameserver 218.85.152.99' > /etc/resolv.conf

systemctl自启动配置

systemctl enable nginx.servicesudo systemctl start nginx.servicesystemctl status create_ap.servicesudo journalctl -f -u create_ap.service#重启sudo systemctl restart create_ap.service#重载sudo systemctl reload create_ap.service#停止sudo systemctl stop create_ap.servicesystemctl cat sshd.service

tx1下找不到usb设备

echo "10c4 ea60" >  /sys/bus/usb-serial/drivers/option1/new_id

串口设备号寻找

查看串口是否可用,可以对串口发送数据比如对com1口,echo lyjie126 > /dev/ttyS0
查看串口设备:dmesg | grep ttyS*

安装ubuntu显示图标后黑屏无信号
选择到install ubuntu的时候别按回车按e,将quiet splash改成nomodeset,然后按f10就能进安装界面

原创粉丝点击