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
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[curl](ubuntu)

Martin Hope
TECH HINDER
Asked: 2022-12-18 10:55:03 +0800 CST

我在使用 curl 时收到连接 TimeOutError

  • 5

我正在尝试访问它curl -fsSL https://raw.githubusercontent.com/m1guelpf/plz-cli/main/install.sh | sh -,但每次运行时都会出现以下错误

curl: (28) Failed to connect to raw.githubusercontent.com port 443: Connection timed out

我注意到我以前也尝试使用 curl 时收到此错误,所以这不是特定于此的。

我正在使用 ubuntu 20.04 lts

curl
  • 1 个回答
  • 42 Views
Martin Hope
Aviator
Asked: 2022-03-09 05:35:42 +0800 CST

如何使用 curl 命令检查用户名密码是否正确?

  • -1

我希望能够编写一个 curl 命令,其中我在 curl 本身中传递用户名密码等选项,它应该连接到服务器。有没有办法可以找到用户是否能够连接到提到的服务器?这意味着如果凭据不正确,它应该在我运行 curl 时抛出一些错误。我正在尝试以下内容:-

curl --silent -k --digest -u "admin:admin" "https://theservername.com:8010"

但这没有回报。

curl
  • 1 个回答
  • 371 Views
Martin Hope
waydroid-user
Asked: 2022-02-01 04:11:28 +0800 CST

curl:(77)错误设置证书验证位置(Ubuntu 20.04.3 LTS)

  • 5

我在 Ubuntu 上安装 Waydroid,运行时:

export DISTRO="focal" && \
sudo curl -# --proto '=https' --tlsv1.2 -Sf https://repo.waydro.id/waydroid.gpg --output /usr/share/keyrings/waydroid.gpg && \
echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ $DISTRO main" > ~/waydroid.list && \
sudo mv ~/waydroid.list /etc/apt/sources.list.d/waydroid.list && \
sudo apt update

我得到错误:

curl: (77) error setting certificate verify locations:                        
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs

我正在运行 Ubuntu 20.04.3 LTS (Focal Fossa) 并且已经完全更新了系统。

ca-certificates is already the newest version (20210119~20.04.2).
curl
  • 4 个回答
  • 7327 Views
Martin Hope
Jorgeee
Asked: 2021-10-12 11:34:19 +0800 CST

在 WhatsApp 网页上使用 cURL 时出错 [重复]

  • 4
这个问题在这里已经有了答案:
如何在命令行中跳过 & 符号的评估? (3 个回答)
bash:“Y”:找不到命令 2 个答案
11 个月前关闭。

我正在尝试做一个 cURL,只获取网站的标题:

curl -I https://api.whatsapp.com/send/?phone=51988888888&text&app_absent=0

但我得到一个提示,直到按下Enter或Ctrl+ C。

在此处输入图像描述

有什么我可以做的吗?

curl
  • 1 个回答
  • 1764 Views
Martin Hope
danh
Asked: 2020-11-29 16:45:06 +0800 CST

bash for循环中的增量变量

  • 0

尝试创建一个脚本,curl用于探测多个 URL 以获取更新信息。目前,我正在为每个 URL 使用单独的命令,我试图通过在for循环中使用增量变量来缩短代码行。我目前拥有的:(以虚拟网址为例)

#!/bin/bash

url01="https://askubuntu1.com"
url02="https://askubuntu2.com"
url03="https://askubuntu3.com"
url04="https://askubuntu4.com"
url05="https://askubuntu5.com"

for i in {01..05}
    do
        url=$((url$i))
        curl $url 2>&1| grep 'askubuntu' >> output.txt
done &

错误输出:

第 10 行:https ://askubuntu1.com:表达式中的语法错误(错误标记为“://askubuntu1.com”)

预期结果:curl每个查询管道 的命令输入到 bash shell,grep然后输出到“output.txt”。

卷曲“https://askubuntu1.com”
卷曲“https://askubuntu2.com”
。
.
卷曲“https://askubuntu3.com”

谢谢你

scripts bash curl
  • 1 个回答
  • 2253 Views
Martin Hope
Charleskimani
Asked: 2020-11-24 09:04:17 +0800 CST

由于依赖问题,无法在 Ubuntu 20.04 上安装 cURL

  • 6

我使用 Ubuntu 20.04.1 并尝试安装 cURL。当我sudo apt install curl在终端中运行时,出现以下错误:

The following packages have unmet dependencies: curl : Depends: libcurl4 (= 7.68.0-1ubuntu2) but 7.68.0-1ubuntu2.2 is to be installed
E: Unable to correct problems, you have held broken packages.

我试图遵循这个稍微相似的解决方案,但没有成功。
这是出现在我的计算机中的错误屏幕截图:

我的错误截图

输出apt-cache policy curl libcurl4:

curl: 
  Installed: (none) 
  Candidate: 7.68.0-1ubuntu2 
  Version table: 
     7.68.0-1ubuntu2 500
     500 us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
libcurl4:
  Installed: 7.68.0-1ubuntu2.2
  Candidate: 7.68.0-1ubuntu2.2
  Version table: 
 *** 7.68.0-1ubuntu2.2 100
        100 /var/lib/dpkg/status 
     7.68.0-1ubuntu2 500
        500 us.archive.ubuntu.com/ubuntu focal/main amd64 Packages 
package-management dependencies apt curl 20.04
  • 1 个回答
  • 6195 Views
Martin Hope
Fibericon
Asked: 2020-11-18 03:25:00 +0800 CST

cURL 在不允许时收到 HTTP/0.9,但安装了 nghttp2

  • 11

我正在尝试为 Monero 节点设置钱包 RPC,但是当我使用 cURL 到该端口时,我收到此错误:

curl: (1) Received HTTP/0.9 when not allowed

但是,检查 curl --version 给了我这个:

curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3

我认为只有在没有 nghttp2 的情况下编译 cURL 时才会出现该错误。这是一个运行 20.04 的 AWS 环境。

aws curl 20.04
  • 4 个回答
  • 50584 Views
Martin Hope
user3801239
Asked: 2020-08-28 05:03:49 +0800 CST

curl:/home/user/LD_LIBRARY/libcurl.so.4:找不到版本“CURL_OPENSSL_4”(curl 需要)

  • 0

我正在使用 ubuntu 18.04 LTS,我的内核版本是4.15.0-96-generic我通过安装 curl

sudo apt-get install curl

当我使用命令时curl --version,它说

curl: /home/user/LD_LIBRARY/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by curl)

我已经查看了这个链接curl 在 Ubuntu 18.04 LTS 上不起作用, 但它没有解决错误

在哪里openssl version 返回

OpenSSL 1.1.1  11 Sep 2018
openssl curl
  • 1 个回答
  • 1289 Views
Martin Hope
konstapel
Asked: 2020-07-17 05:26:22 +0800 CST

具有用户身份验证的多个卷曲

  • 1

我想在不使用 git(只是简单的设置配置)的情况下从我的 repo 自动下载一些配置文件,为此我想用 curl 下载这些文件。因为我需要用户身份验证,所以我很好奇如何在一个命令中处理这个问题?

curl --user Linus https://my.repo.com/repo/file.txt -o /home/user/download && https://my.repo.com/repo/file2.txt -o /home/user/forlaterusage

上面的命令不能按预期工作。

我想要实现的是,我只需输入一次密码即可进行多次下载。

scripts command-line curl
  • 1 个回答
  • 460 Views
Martin Hope
alwaysNever
Asked: 2020-07-01 22:18:43 +0800 CST

需要帮助安装此软件

  • 0

我正在尝试安装https://github.com/ahodesuka/ahoviewer/,但显然我需要 Linux 并安装一些依赖项。现在听着:我是 Windows 用户,所以我正在尝试在 Windows 上构建它。

我正在使用 WSL 和 Microsoft Store 中的 Ubuntu。

我的第一个障碍是开发人员使用 openssl 安装 libcurl 可以很好地避免头痛,但我不知道如何做到这一点。我已经克隆了 openssl 存储库并按照此处的说明进行操作:https ://www.openssl.org/source/gitrepo.html ,但不知道如何继续。我很确定这真的很简单,但是谷歌搜索“使用 openssl 构建 libcurl”给了我太多不同的解决方案,我不想搞砸

dependencies windows-subsystem-for-linux curl
  • 2 个回答
  • 142 Views

Sidebar

Stats

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

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve