1.更新源
sudo vim etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe
2.更新软件
sudo apt-get update
//更新源的内容
sudo apt-get -f install
//复损坏的软件包,重新安装正确版本的
sudo apt-get upgrade
//更新软件
3.ifconfig使用
sudo apt install net-tools
4.安装vim
sudo apt-get install vim
5.安装python
sudo apt-get install python
sudo apt-get install gcc-arm-linux-gnueabihf
sudo apt-get install openjdk-8-jdk
sudo apt-get install build-essential
sudo apt-get install libncurses*
sudo apt-get install lzop
sudo apt-get install openssh-server vim git fakeroot
sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib unzip device-tree-compiler python-pip libncurses5-dev
sudo apt install python3-pip
sudo apt-get install device-tree-compiler
sudo apt-cache search aarch64
//查看gcc的版本
sudo apt-get install gcc-10-aarch64-linux-gnu
//选择一款gcc
sudo apt --fix-broken install
//解决依赖问题
sudo apt-get install gcc-aarch64-linux-gnu
//安装一个没有版本号的
sudo apt-get install git gnupg flex bison gperf libsdl1.2-dev
sudo apt-get install libesd-java libwxgtk3.0-dev squashfs-tools build-essential zip curl
sudo apt-get install libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils
sudo apt-get install xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev
sudo apt-get install lib32readline-dev gcc-multilib libswitch-perl libssl-dev unzip zip device-treecompiler
sudo apt-get install liblz4-tool python-pyelftools python3-pyelftools -y
sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib unzip device-tree-compiler python-pip libncurses5-dev pyelftools
pip install pyelftools
recipe for target ‘scripts/extract-cert‘ failed
sudo apt install libssl-dev
/bin/sh: 1: bison: not found scripts/Makefile.lib:196: recipe for target ‘scripts/kconfig/zco
sudo apt install bison flex
arch/arm/boot/compressed/Makefile:191: recipe for target 'arch/arm/boot/compressed/piggy_data' failed
sudo apt-get install liblz4-tool
ERROR: Running /home/sdk/work/rv1126_rv1109/device/rockchip/common/scripts/mk-rootfs.sh - build_buil
sudo apt-get install expect
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
sudo apt-get install ssh
sudo apt-get install samba-common -y
sudo apt-get install samba
问题:
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
sudo apt-get install aptitude
sudo aptitude install samba
sudo vim etc/samba/smb.conf
[sdk]
comment= lm sdk samba
path=/home/sdk
public=yes
writable=yes
browseable=yes
available=yes
valid users= @root @sdk
sudo smbpasswd -a sdk
然后输入密码xxxx
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
安装gcc
安装这个gcc
source .bashrc文章来源:https://www.toymoban.com/news/detail-662939.html
文章来源地址https://www.toymoban.com/news/detail-662939.html
到了这里,关于ubuntu20搭建环境使用的一下指令的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!