AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-767468

KevinHJ's questions

Martin Hope
KevinHJ
Asked: 2023-12-25 20:31:45 +0800 CST

阻止 wget 为 Options +Indexes 目录创建 index.html

  • 7

我正在使用此命令来镜像服务器上的目录树:

wget -m -e robots=off --no-parent --reject-regex index.html --reject-regex aaa --no-verbose --timestamp https://example.com/folders/

“folders”目录有一个.htaccess包含指令的文件Options +Indexes。

但是,对于每个目录,它都会创建一个index.html文件,反映服务器生成的显示该目录索引的页面。

由于它实际上不是一个文件,因此它没有修改时间戳标头。我想阻止 wget 创建该index.html文件。使用--reject-regex index.html不行。

wget
  • 1 个回答
  • 120 Views
Martin Hope
KevinHJ
Asked: 2023-12-24 21:21:35 +0800 CST

使用 wget 成功镜像远程目录后收到“无法写入”消息

  • 6

我一直在尝试使用 wget 镜像服务器上的目录,然后仅使用较新的文件更新下载的树。本地机器运行的是MacOS 12.6.3;服务器是 CloudLinux,版本 6。

该服务器是半私有的,这意味着它没有密码保护,但不做广告,并且有无机器人建议。

我想使用比设置 rsync (ssh 密钥等)更简单的东西。我在 Unix SE 网站上找到的建议似乎是实现此目的的简单方法。

所以我运行了这个命令:

wget -m -e robots=off https://example.com/folders

(“文件夹”目录Options +Indexes中有一个指令.htaccess)

这就创建了最初的目标。一切都下载得很好,并在我的本地计算机上创建了初始“文件夹”目录树,所有文件都完好无损。

然后,我在最初下载的服务器上的树中创建了一个新文件,然后尝试运行它以查看它是否会获取新文件:

wget -m -e robots=off --timestamp https://example.com/folders

但我收到这个错误:

Cannot write to ‘example.com/folders’ (Success).

完整输出:

--2023-12-24 05:29:07--  https://example.com/folders
Resolving example.com (example.com)... 123.456.789.123
Connecting to example.com (example.com)|123.456.789.123|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://example.com/folders/ [following]
--2023-12-24 05:29:07--  https://example.com/folders/
Reusing existing connection to example.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 3671 (3.6K) [text/html]
example.com/folders: Is a directory

Cannot write to ‘example.com/folders’ (Success).

我检查了提到的文件夹的权限,它们都很好。

搜索“无法写入”消息产生了一堆与我的用例无关的结果。

wget
  • 1 个回答
  • 42 Views
Martin Hope
KevinHJ
Asked: 2020-03-17 08:26:32 +0800 CST

尝试在 Ubuntu 18.04 上安装 gnuradio 时出现“未满足的依赖项”错误

  • 7

按照这里的指南:

https://wiki.gnuradio.org/index.php/InstallingGR#Ubuntu_PPA_Installation

我尝试安装:

sudo add-apt-repository ppa:gnuradio/gnuradio-releases
sudo add-apt-repository ppa:gnuradio/gnuradio-master
sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.7
sudo apt-get update
sudo apt install gnuradio

我的输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gnuradio : Depends: libgnuradio-analog (>= 3.9.0.0git~master~13593~bionic) but it is not     going to be installed
        Depends: libgnuradio-audio (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-blocks (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-channels (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-digital (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-dtv (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-fec (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-fft (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-filter (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-qtgui (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-runtime (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-trellis (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-uhd (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-video-sdl (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-vocoder (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-wavelet (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-zeromq (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Recommends: python3-qwt-qt5 but it is not installable
E: Unable to correct problems, you have held broken packages.

如果我使用其中一个错误包沿着依赖链上升,我最终得到:

sudo apt-get install libgnuradio-runtime
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgnuradio-runtime : Depends: libvolk2.2 (>= 2.2.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

最后:

sudo apt-get install libvolk2.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libvolk2.2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libvolk2.2' has no installation candidate

查找 libvolk2.2 表明它位于 Debian 的 sid(不稳定)存储库中。但是,当我搜索有关安装 gnuradio 的信息时,我没有找到任何有关必须使用 sid 存储库的信息。如果是这样的话,我使用的指南似乎也会提到这一点。

因此,在使用 sid 存储库并冒着损坏的风险之前,我想看看是否还有其他一些我看不到的东西是需要的。

非常感谢您的帮助。

帮助将不胜感激。

[编辑] 还想提一下,这是 18.04 的全新安装,自动软件更新程序 AFAICT 的所有内容都是最新的。

apt ubuntu
  • 1 个回答
  • 766 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve