mysql random bytes,执行:gpg --gen-key 显示:Not enough random bytes available.

[root@clovemzone ~]$ gpg --gen-key

gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.

This program comes with ABSOLUTELY NO WARRANTY.

This is free software, and you are welcome to redistribute it

under certain conditions. See the file COPYING for details.

Please select what kind of key you want:

(1) DSA and Elgamal (default)

(2) DSA (sign only)

(5) RSA (sign only)

Your selection? 1

DSA keypair will have 1024 bits.

ELG-E keys may be between 1024 and 4096 bits long.

What keysize do you want? (2048)

Requested keysize is 2048 bits

Please specify how long the key should be valid.

0 = key does not expire

= key expires in n days

w = key expires in n weeks

m = key expires in n months

y = key expires in n years

Key is valid for? (0) 0

Key does not expire at all

Is this correct? (y/N) y

You need a user ID to identify your key; the software constructs the user ID

from the Real Name, Comment and Email Address in this form:

"Heinrich Heine (Der Dichter) "

Real name: clovemzone

Email address: clovem@gmail.com

Comment: clovem key

You selected this USER-ID:

"clovemzone (fdfd) "

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O

You need a Passphrase to protect your secret key.

You don't want a passphrase - this is probably a *bad* idea!

I will do it anyway. You can change your passphrase at any time,

using this program with the option "--edit-key".

We need to generate a lot of random bytes. It is a good idea to perform

some other action (type on the keyboard, move the mouse, utilize the

disks) during the prime generation; this gives the random number

generator a better chance to gain enough entropy.

.+++++.+++++++++++++++.+++++..+++++++++++++++++++++++++..+++++..+++++.++++++++++++++++++++.++++++++++++++++++++++++++++++..++++++++++++++++++++>.++++++++++..........................................+++++

Not enough random bytes available. Please do some other work to give

the OS a chance to collect more entropy! (Need 274 more bytes)

解决方法:

1.原有进程不退出

2.对一个稍大的tar.gz包解压

[root@clovemzone ~]# tar zxvf mysql-5.5.29.tar.gz

会发现执行完成,稍等片刻的时间,上面的进程会继续下去了+++++++++++++++..+++++++++++++++..++++++++++.+++++.+++++++++++++++.+++++..++++++++++++++++++++++++++++++..++++++++++++++++++++++++++++++++++++++++++++++++++>.++++++++++>+++++....................+++++^^^^

gpg: key 2914933F marked as ultimately trusted

public and secret key created and signed.

gpg: checking the trustdb

gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model

gpg: depth: 0 valid: 5 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 5u

pub 1024D/2914933F 2013-06-11

Key fingerprint = C718 A91B 00EE 9FBF 8FB2 4F22 B564 CAFC 2914 933F

uid clovemzone (fdfd)

sub 2048g/CFF2F8BB 2013-06-11

至此问题解决,问题解决的关键就在于这个进程需要更多的随机数什么的,那就给系统点随机字符即可。

Ubuntu 中,你可以使用 apt-mirror 工具来制作离线下载。以下是步骤: 1. 安装 apt-mirror 工具: ``` sudo apt-get install apt-mirror ``` 2. 创建一个目录来存储下载的软件包: ``` sudo mkdir -p /var/spool/apt-mirror ``` 3. 编辑 apt-mirror 的配置文件 /etc/apt/mirror.list,设置要下载的镜像和要下载的软件包,例如: ``` deb-amd64 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse deb-amd64 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse deb-amd64 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse deb-amd64 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse clean https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ ``` 这里以清华镜像为例,你可以根据自己的需要修改。 4. 运行 apt-mirror 工具进行下载: ``` sudo apt-mirror ``` 这个过程可能需要一些时间,取决于要下载的软件包数量和大小。 5. 完成下载后,你可以将 /var/spool/apt-mirror 目录复制到 U 盘或者其他离线存储设备中,然后将它带到目标机器上。 6. 在目标机器上,你需要将 /etc/apt/sources.list 文件中的镜像地址修改为本地的地址,例如: ``` deb file:///media/usb/apt-mirror/mirrors/mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse deb file:///media/usb/apt-mirror/mirrors/mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse deb file:///media/usb/apt-mirror/mirrors/mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse deb file:///media/usb/apt-mirror/mirrors/mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse ``` 这里的 /media/usb 是 U 盘挂载的位置,你需要根据自己的实际情况修改。 7. 更新本地的软件包信息: ``` sudo apt-get update ``` 这样就可以在离线机器上使用本地的镜像进行软件包安装和更新了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值