我在笔记本电脑上安装了新版本的 ubuntu。发布后,为了将其设置为与我的桌面相同,我做了一个 apt 克隆并安装
# Take a backup of the entire apt repo using apt-clone
sudo apt-clone clone "$BACKUP_DIR"/apt-clone-"$(date +%Y%m%dT%H.%M.%S)".tar.gz
# Get a dump of Dconf settings
dconf dump / >"$BACKUP_DIR"/dconf_settings.dconf
# Restore
# Do a restore
DEBIAN_FRONTEND=noninteractive sudo apt-clone restore "$BACKUP_DIR"/apt-clone*tar.gz
#reload the dconf
dconf load / <"$BACKUP_DIR"/dconf_settings.dconf
Run Code Online (Sandbox Code Playgroud)
一切似乎都很顺利。但是,当我运行curl时,出现以下错误:
curl: symbol lookup error: curl: undefined symbol: curl_url_set, version CURL_OPENSSL_4
Run Code Online (Sandbox Code Playgroud)
我在 SO/ask ubuntu 中查找了问题并运行了以下命令:
$ sudo ldd $(which curl) | grep libcurl
libcurl.so.4 => /usr/lib/dcaenabler/libcurl.so.4 (0x00....)
Run Code Online (Sandbox Code Playgroud)
$ ls -ltr /usr/lib/dcaenabler/libcurl* …Run Code Online (Sandbox Code Playgroud)