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-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
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