Last login: Tue Sep 27 15:05:04 2022 from 192.168.3.49
firefly@firefly:~$ apt update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
firefly@firefly:~$ sudo apt update
Hit:1 http://mirrors.aliyun.com/ubuntu-ports focal InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu-ports focal-updates InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu-ports focal-backports InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu-ports focal-security InRelease
Hit:4 https://wiki.t-firefly.com/firefly-ubuntu-repo focal InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
firefly@firefly:~$ sudo apt upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
firefly@firefly:~$ sudo apt install ufw -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  ufw
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 147 kB of archives.
After this operation, 849 kB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/ubuntu-ports focal-updates/main arm64 ufw all 0.36-6ubuntu1 [147 kB]
Fetched 147 kB in 0s (885 kB/s)
Preconfiguring packages ...
Selecting previously unselected package ufw.
(Reading database ... 93653 files and directories currently installed.)
Preparing to unpack .../ufw_0.36-6ubuntu1_all.deb ...
Unpacking ufw (0.36-6ubuntu1) ...
Setting up ufw (0.36-6ubuntu1) ...

Creating config file /etc/ufw/before.rules with new version

Creating config file /etc/ufw/before6.rules with new version

Creating config file /etc/ufw/after.rules with new version

Creating config file /etc/ufw/after6.rules with new version
Created symlink /etc/systemd/system/multi-user.target.wants/ufw.service → /lib/systemd/system/ufw.service.
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for rsyslog (8.2001.0-1ubuntu1.3) ...
Processing triggers for systemd (245.4-4ubuntu4.0firefly1) ...
firefly@firefly:~$ sudo ufw default allow
Default incoming policy changed to 'allow'
(be sure to update your rules accordingly)
firefly@firefly:~$ sudo ufw allow http
ERROR: initcaps
[Errno 2] modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/4.4.194+
ip6tables v1.8.4 (legacy): can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.

firefly@firefly:~$ ls /lib/mod
modprobe.d/     modules-load.d/
firefly@firefly:~$ ls /lib/modprobe.d/
aliases.conf          fbdev-blacklist.conf  systemd.conf
firefly@firefly:~$ ls /lib/modprobe.d/
aliases.conf          fbdev-blacklist.conf  systemd.conf
firefly@firefly:~$
