小编Rom*_*nko的帖子

apt更新错误

每当我运行时,我都会收到此错误sudo apt update

E: The repository 'http://archive.ubuntu.com/ubuntu wily Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Run Code Online (Sandbox Code Playgroud)

我正在运行 Ubuntu 16.04。

lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:    16.04
Codename:   xenial
Run Code Online (Sandbox Code Playgroud)

内容/etc/apt/sources.list

# deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes …
Run Code Online (Sandbox Code Playgroud)

ubuntu apt upgrade

3
推荐指数
1
解决办法
1024
查看次数

Debian 中的核心文件是什么?

我的 Debian 笔记本电脑没有响应,我决定强制关机。启动后,我core在我的主目录中找到了一个文件。它是什么以及如何使用它?我猜这是某种用于调试的内存转储。我试过了gdb core,但它说无法识别文件格式。

debian core-dump

3
推荐指数
1
解决办法
196
查看次数

无法获取 dpkg 前端锁 (/var/lib/dpkg/lock-frontend),您是 root 吗?

(base) rusiru@rusiru-X556UV:~$ sudo apt-get upgrade
Reading packages lists... Done
Building dependency tree
Reading state information... Done
E: The package packettracer needs to be installed, but I can't find an archive for it.
(base) rusiru@rusiru-X556UV:~$ sudo apt-get update
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://lk.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://lk.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://lk.archive.ubuntu.com focal-backports InRelease
Reading package lists... Done
(base) rusiru@rusiru-X556UV:~$ sudo apt-get upgrade
Reading packages lists... Done
Building dependency tree
Reading state information... Done
E: The package packettracer needs to be …
Run Code Online (Sandbox Code Playgroud)

root dpkg lock

1
推荐指数
1
解决办法
7666
查看次数

检查 TLS/SSL 证书过期日期的脚本适用于 google.com,但不适用于 https://google.com

我编写了以下代码,输出应该是:

  • SSL 证书何时到期
  • 浏览器的状态码

问题是,如果我插入https://www.google.comhttp://www.google.com我会收到错误。如果我尝试使用 google.com 它工作正常。

任何想法?


read -p "Please insert the url: " url

certificate_file=$(mktemp)
echo -n | openssl s_client -servername "$url" -connect "$url":443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > $certificate_file
date=$(openssl x509 -in $certificate_file -enddate -noout | sed "s/.*=\(.*\)/\1/")
date_s=$(date -d "${date}" +%s)
now_s=$(date -d now +%s)
date_diff=$(( (date_s - now_s) / 86400 ))

if [[ "$date_diff" -gt "1" ]]; then

echo "Certificate expires in: $date_diff days"

else
    echo "$url does …
Run Code Online (Sandbox Code Playgroud)

linux bash

1
推荐指数
1
解决办法
2586
查看次数

我运行了“sudo rm -rf /*”,现在我的电脑无法启动

我跑了

sudo rm -rf /*
Run Code Online (Sandbox Code Playgroud)

在 Zorin OS 上,因为我的朋友向我挑战,现在我什至无法启动到我的主板 BIOS。我应该如何解决这个问题?还是我已经注定无可救药了?

我曾多次尝试动力循环但没有运气。我尝试启动到 GParted。我什至删除了所有驱动器,但没有成功。我尝试的一切都行不通。

sudo rm zorin

0
推荐指数
1
解决办法
2951
查看次数

如何解决 Kali Linux 中找不到“help”命令的错误?

我知道这help是一个 shell 内置内部命令,用于查找内置命令,例如cd. 但它在 VirtualBox 中的 Kali Linux 终端中不起作用。它显示以下错误:

Command 'help' not found, did you mean:
  command 'dhelp' from deb dhelp
  command 'yelp' from deb yelp
Try: sudo apt install <deb name>
Run Code Online (Sandbox Code Playgroud)

terminal shell-builtin kali-linux

-4
推荐指数
1
解决办法
2954
查看次数

当你输入“if”时不再有提示

if如果您键入for ,提示就会消失ifconfig。那不应该发生。

\n
\xe2\x94\x8c\xe2\x94\x80\xe2\x94\x80(rootkali)-[~] \n\xe2\x94\x94\xe2\x94\x80#\n\n\xe2\x94\x8c\xe2\x94\x80\xe2\x94\x80(rootkali)-[~] \n\xe2\x94\x94\xe2\x94\x80# if\nif> exit\nif> ifconfig\nif> iwconfig\nif> clear\nif> \n
Run Code Online (Sandbox Code Playgroud)\n

terminal kali-linux

-4
推荐指数
1
解决办法
105
查看次数

需要有关 sed 命令的帮助

我需要帮助输入一个sed命令来搜索下面 2000 年至 2009 年(含)之间发布的游戏。我尝试过 (/) 搜索,但它对我不起作用。

\n
1   Wii Sports                    Wii  2006 Nintendo            41.36\n2   Super Mario Bros.             NES  1985 Nintendo            29.08\n3   Duck Hunt                     NES  1985 Nintendo            26.93\n4   Tetris                        GB   1989 Nintendo            23.20\n5   Mario Kart Wii                Wii  2008 Nintendo            15.91\n6   Wii Sports Resort             Wii  2009 Nintendo            15.61\n7   Kinect Adventures!            X360 2010 MS Game Studios     15.09\n8   New Super Mario Bros. Wii     Wii  2009 Nintendo            14.53\n9   Wii Play                      Wii  2007 Nintendo            13.96\n10  Super Mario World             SNES 1991 Nintendo            12.78\n11  New …
Run Code Online (Sandbox Code Playgroud)

sed command

-5
推荐指数
1
解决办法
183
查看次数

标签 统计

kali-linux ×2

terminal ×2

apt ×1

bash ×1

command ×1

core-dump ×1

debian ×1

dpkg ×1

linux ×1

lock ×1

rm ×1

root ×1

sed ×1

shell-builtin ×1

sudo ×1

ubuntu ×1

upgrade ×1

zorin ×1