在更新软件源时有些源会出现错误,如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
$ sudo apt-get update
命中:2 https://pro-driver-packages.uniontech.com eagle InRelease
命中:1 https://app-store-files.uniontech.com/231017174131534/appstore deepin InRelease
忽略:3 https://download.docker.com/linux/ubuntu apricot InRelease
错误:4 https://download.docker.com/linux/ubuntu apricot Release
404 Not Found [IP: 54.230.21.56 443]
命中:5 https://community-packages.deepin.com/deepin apricot InRelease
命中:6 https://community-packages.deepin.com/driver driver InRelease
命中:7 https://community-packages.deepin.com/printer eagle InRelease
正在读取软件包列表... 完成
E: 仓库 “https://download.docker.com/linux/ubuntu apricot Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

从上面的错误信息可以看出是docker的源出现错误。用以下命令删除docker源:

阅读全文 »

在执行Hexo一键部署时出现以下错误:

1
2
3
$ hexo d
INFO Validating config
ERROR Deployer not found: git

原因是未安装hexo-deployer-git,通过以下命令安装后重新部署即可。

阅读全文 »

异常信息如下:

1
2
3
4
5
6
7
8
9
$ python3
Python 3.10.9 (main, Mar 1 2023, 18:23:06) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/username/anaconda3/lib/python3.10/site-packages/gi/__init__.py", line 40, in <module>
from . import _gi
ImportError: /lib/x86_64-linux-gnu/libgirepository-1.0.so.1: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

修改链接库:

阅读全文 »

Ubuntu 20.04 在使用某软件的时候出现了以下异常信息:

1
OSError: libmediainfo.so.0: cannot open shared object file: No such file or directory

这是因为缺少了libmediainfo-dev软件包,安装后问题解决:

阅读全文 »

函数是一种映射,将变量间的关系形式化为数学描述。

偶函数与奇函数

偶函数

阅读全文 »

正弦、余弦和正切是三角法里的主要函数,它们是基于一个直角三角形而建立的。在探索这些函数之前,我们先给三角形的每条边一个名字:

  • “对边” 是在角 θ 的对面
  • “邻边” 是在角 θ 的旁边
  • “斜边” 是长的一边

正弦(sine)、余弦(cosine)和正切(tangent)(英语符号简写为 sin, cos 和 tan)是直角三角形边长的比:

阅读全文 »

IPone 6s接入Ubuntu后照片位置如下:

1
2
3
$ cd /run/user/1000/gvfs/gphoto2:host=Apple_Inc._iPhone_314f6be727cfce5f1f77980808a6bfb62b87bf63
$ ls
DCIM

如果数字长度过大,则会以科学技术法的方式展现。通过一下例子可以复现,如下:

1
2
3
4
5
create table t1 (d decimal(18,8)) stored as orc;

insert into t1 values(0.00000001);

select * from t1;

如果需要按照原始数值展示,则可以用使用format_number函数,如下:

阅读全文 »
0%