将我的Linux服务器更新为Ubuntu19.10和Debian的最新版本,它们都指向我运行镜像存储库的主Linux服务器,并允许通过FTP与其通信,现在我正在接收消息
The method 'ftp' is unsupported and disabled by default.
Consider switching to http(s).
Set Dir::Bin::Methods::ftp to "ftp" to enable it again.
在无法获取ftp://之后。如何通过FTP重新启用系统更新的检索?
目前,我正在使用具有以下服务的服务器进行渗透测试实验室:
Nmap scan report for 10.0.11.125
Host is up (1.3s latency).
Not shown: 998 closed ports
PORT STATE SERVICE VERSION
21/tcp open ftp vsftpd 2.0.8 or later
22/tcp open ssh OpenSSH 5.8p1 Debian 7ubuntu1 (Ubuntu Linux; protocol 2.0)
Service Info: Host: Foo; OS: Li
我的问题是,我希望从root运行一个脚本,而我必须通过在命令行上键入"su -“来手动以root登录。
我的疑问是,我正在执行的脚本只需提示我输入密码,即可自动以root登录。救我!
:脚本:
if [ "$(whoami)" != "root" ]; then
echo -e '\E[41m'"\033[1mYou must be root to run this script\033[0m"
**su - # at this line I want to login as root but it is not wo
我刚刚把我的Ubuntu从焦点(20.04)升级到jammy(22.04),现在我的python坏了。这会引起很多麻烦,比如Apt不会更新,一些应用程序也不会启动。
libpython3.10 : Depends: libpython3.10-stdlib (= 3.10.6-1~22.04.2) but 3.10.9-1+focal2 is to be installed
作为ubuntu包文档,3.10.6.1是当前(jammy)版本。但是为什么它要安装一个焦点包(3.10.9.1 =月球(23.04))。
我尝试安装python 3.11 (我以前运行3.10)。但是Apt仍然抛出这个错