zoukankan      html  css  js  c++  java
  • ubuntu坑(持续更新~)

    0.you should not install packages from any repository that represents a different system version to the one you're using - it often leads to trouble, particularly if you're talking about system libraries.即:安装对应版本的包。比如ubuntu14.04就不要升级GCC4.8到5.4的版本。问题多多。都是时间和精力在替我背锅。泪。。。)

    1.安装sogou拼音后,没出现界面
    注销下,再登入。

    2.
    W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/main/binary-i386/Packages  Hash Sum mismatch
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    提供源的服务器的问题。可能是因为网络问题导致tcp包没有发送完整,也有可能是因为服务器那边繁忙所以没有处理你的请求,也有可能是因为服务器那边进行了缓存导致软件列表不是最新的,等等。。。
    尝试的方法:
    1)
        sudo apt-get clean  
        sudo apt-get update --fix-missing  
    2)    # 删除  
        sudo rm - rf/var/lib/apt/lists/*  
        # 新建相应文件夹  
        sudo mkdir /var/lib/apt/lists/partial  
        # 重新update  
        sudo apt-get update  
    3)
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF 437D05B5
    4) 更改源. sudo gedit /etc/apt/sources.list 。把有问题的源注释掉,或者换个源。(如添加源:deb http://ppa.launchpad.net/openrave/testing/ubuntu trusty main;   deb-src http://ppa.launchpad.net/openrave/testing/ubuntu trusty main)
    5)昨天直接在终端添加源出错后,从sudo gedit /etc/apt/source.list添加源后,没问题。(deb http://ppa.launchpad.net/openrave/testing/ubuntu trusty main    deb-src http://ppa.launchpad.net/openrave/testing/ubuntu trusty main)。

    3.sogoupinyin 不能用的时候
    sudo apt-get install  fcitx
    sudo apt-get install  fcitx-pinyin//安装fcitx拼音支持
    键盘输入方式系统选择fcitx
    如果“系统设置”出现问题,可以sudo apt-get install unity-control-center 解决问题
    Ubuntu 14.04 系统设置很多选项消失(执行过卸载ibus输入法的操作),sudo apt-get install ubuntu-desktop

    4.ubuntu下运行.run文件(如program.run)
    切换至当前目录
    chmod +x file.run
    ./file.run

    5.下载外国软件速度很慢时,经常中断。可以从镜像处下载。

    6.解压软件
    unzip filename.zip
    tar zxvf filename.gz
    tar jxvf FileName.tar.bz2
    bzip2 -d FileName.bz
    tar jxvf FileName.tar.bz
    uncompress FileName.Z
    tar Zxvf FileName.tar.Z
    rar x FileName.rar
    tar xvf FileName.tar
    tar -zxvf FileName.tar.gz

    7.复制文件
    cp filename 目标文件位置
    如:cp libflashplayer.so /usr/lib/firefox-addons/plugins

    8.linux下升级GCC5.4,把4.8的地方改成5.4就行,步骤都一样。
    http://www.cnblogs.com/lizhenghn/p/3550996.html


    9.将github的代码拷贝到某一文件夹下:
    $ cd filename
    $ git clone address.git  
    如:
    $ cd ~/ros_ws/src
    $ git clone https://github.com/ros-planning/moveit_robots.git

    10.创建并编译工作空间
    $ mkdir -p ~/catkin_ws/src
    $ cd ~/catkin_ws/src
    $ cd ~/catkin_ws/
    $ catkin_make
    source一下工作空间
    $ source devel/setup.bash
    参考网址:http://wiki.ros.org/catkin/Tutorials/create_a_workspace

    11.ubuntu状态栏重新显示时间

    sudo apt-get install indicator-datetime //检查是否安装了日期时间指示器
    sudo dpkg-reconfigure --frontend noninteractive tzdata  //重新配置
    sudo killall unity-panel-service    //重启Unity

    参考 状态栏没显示时间解决办法

    12.今天更新一个软件的地址时候,移动网一直更新不了这个地址,更下载不了,后来用校园网,搞定。

     

  • 相关阅读:
    Ubuntu安装配置samba
    AFNetworking 和 ASIHTTPRequest
    github代码托管
    Java使用poi包读取Excel文档
    Eclipse-设置保存时自动给变量加final
    Eclipse-设置格式化代码时不格式化注释
    Map的内容按字母顺序排序
    Mysql--mysqldump命令 备份数据库
    Mysql--alter命令
    Java IO 文件
  • 原文地址:https://www.cnblogs.com/algs/p/6809998.html
Copyright © 2011-2022 走看看