包含 deb 后出现此错误
http://in.archive.ubuntu.com/ubuntu bionic main universe in sources.list
Get:6 http://in.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Err:6 http://in.archive.ubuntu.com/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Reading package lists... Done
请帮忙
答案1
由于公钥不可用,无法验证以下签名:NO_PUBKEY 3B4FE6ACC0B21F32
条件:一条deb [url] bionic main universe
线/etc/apt/sources.list
安装密钥.....和 g++-4.8
gpg --keyserver keyserver.ubuntu.com --recv 3B4FE6ACC0B21F32
gpg --export --armor 3B4FE6ACC0B21F32 | sudo apt-key add - && sudo apt-get update
sudo apt install g++-4.8
ns2 构建(ns-allinone-2.35_gcc5.tar.gz https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing&resourcekey=0-EyPhoScBFDb7ul0VFk6FZQ)
tar xvf ns-allinone-2.35_gcc5.tar.gz
cd ns-allinone-2.35/
export CC=gcc-4.8 CXX=g++-4.8 && ./install
.....没问题,Ubuntu 21.10