我从 .deb 包安装了 bbk-cli
eddie@laptop:~/Downloads$ sudo apt install ./bbk-cli_1.0.0_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'bbk-cli' instead of './bbk-cli_1.0.0_amd64.deb'
The following NEW packages will be installed:
bbk-cli
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/209 kB of archives.
After this operation, 503 kB of additional disk space will be used.
Get:1 /home/eddie/Downloads/bbk-cli_1.0.0_amd64.deb bbk-cli amd64 1.0.0 [209 kB]
Selecting previously unselected package bbk-cli.
(Reading database …
Run Code Online (Sandbox Code Playgroud) 我学会了使用带有 DOS 的计算机,因此我尝试近似批处理/.bat 文件来运行系统的所有更新并创建结果的日志文件。
#!/bin/bash
#update system in one step
cd ~
date > aupdate.log
echo Launching updates...
echo Beginning apt update
sudo apt update >> aupdate.log
sudo apt upgrade -y >> aupdate.log
echo Completing apt autoremove process
sudo apt autoremove -y >> aupdate.log
echo Beginning snap update
sudo snap refresh >> aupdate.log
echo Beginning flatpak update
flatpak update -y >> aupdate.log
echo Updates complete. Review aupdate.log for details.
Run Code Online (Sandbox Code Playgroud)
我走在正确的轨道上吗?到目前为止,我有两个问题需要解决。
编辑:这是我运行脚本时的结果:
Launching updates...
Beginning …
Run Code Online (Sandbox Code Playgroud)