sudo pacman -Syy
sudo pacman-mirrors -i -c China -m rank
edit /etc/pacman.conf add this
[archlinuxcn]
SigLevel= TrustedOnly
Snap is available for Linux Mint 18.2 (Sonya), Linux Mint 18.3 (Sylvia), Linux Mint 19 (Tara), Linux Mint 19.1 (Tessa) and the latest release, Linux Mint 20 (Ulyana).
You can find out which version of Linux Mint you’re running by opening System info from the Preferences menu.
Mint info
On Linux Mint 20, /etc/apt/preferences.d/nosnap.pref needs to be removed before Snap can be installed. This can be accomplished from the command line:
$ sudo rm /etc/apt/preferences.d/nosnap.pref
$ sudo apt update
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import re | |
| def main(): | |
| fix = open('fix.sh', 'w+') | |
| for line in open("txt"): | |
| pkg = re.match(re.compile('''dpkg: 警告: 无法找到软件包 (.+) '''), line) | |
| if pkg: | |
| cmd = "sudo apt-get -y install --reinstall " + pkg.group(1) | |
| fix.write(cmd + '\n') |
| $ sudo fdisk -l | |
| $ sudo ntfsfix /dev/sda2 |
| # add the i8042.reset | |
| GRUB_CMDLINE_LINUX_DEFAULT="i8042.reset quiet splash" |
| # when u installed the gcc-10 and g++-10 then run it | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 70 --slave /usr/bin/g++ g++ /usr/bin/g++-10 |
| #!/bin/bash | |
| sudo su | |
| echo 'options nvidia_drm modeset=1' >> /lib/modprobe.d/nvidia-graphics-drivers.conf |