
代码: 全选
sudo apt install openssl
sudo apt install libssl-dev
代码: 全选
ubuntu@web:~$ openssl --version
Invalid command '--version'; type "help" for a list.
ubuntu@web:~$
ubuntu@web:~$ ll -lha /usr/bin/openssl
-rwxr-xr-x 1 root root 982K 8月 21 01:05 /usr/bin/openssl*
ubuntu@web:~$
ubuntu@web:~$ echo $PATH | grep usr/bin
/home/ubuntu/bin:/opt/pgsql/15/bin:/opt/node-v20.17.0-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ubuntu/bin
2. apt remove openssl 导致大量应用程序无法正常,给大家提个醒,有一些文件不能卸载,我当初重装 openssl不行,试着卸载,悲惨了

代码: 全选
sudo apt install openssl
sudo apt install libssl-dev
代码: 全选
sudo apt install -f
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
apport-symptoms cloud-guest-utils cups-server-common diffstat eatmydata fdisk ffmpeg flac gdisk gettext gir1.2-gtk-vnc-2.0 gir1.2-gtksource-4 gir1.2-libosinfo-1.0 gir1.2-libvirt-glib-1.0
gir1.2-snapd-2 gir1.2-spiceclientglib-2.0 gir1.2-spiceclientgtk-3.0 gnome-session-bin gnome-session-common gnome-startup-applications hplip-data intltool-debian libaliased-perl
libapt-pkg-perl libarchive-zip-perl libaudiofile1 libauthen-sasl-perl libb-hooks-endofscope-perl libb-hooks-op-check-perl libberkeleydb-perl libcapture-tiny-perl libcgi-fast-perl
libcgi-pm-perl libclass-data-inheritable-perl libclass-method-modifiers-perl libclass-xsaccessor-perl libclone-perl libconfig-tiny-perl libconst-fast-perl libcpanel-json-xs-perl
libcupsimage2t64 libdata-dpath-perl libdata-dump-perl libdata-messagepack-perl libdata-optlist-perl libdata-validate-domain-perl libdata-validate-ip-perl libdata-validate-uri-perl
libdevel-callchecker-perl libdevel-size-perl libdevel-stacktrace-perl libdynaloader-functions-perl libeatmydata1 libemail-address-xs-perl libexception-class-perl libfcgi-bin libfcgi-perl
libfcgi0t64 libfile-find-rule-perl libfile-listing-perl libfont-afm-perl libfont-ttf-perl libfreezethaw-perl libgpod-common libgpod4t64 libgtk-vnc-2.0-0 libgtksourceview-4-0
libgtksourceview-4-common libgvnc-1.0-0 libhpmud0 libhtml-form-perl libhtml-format-perl libhtml-html5-entities-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl
libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libimport-into-perl libio-html-perl libio-interactive-perl libio-socket-ssl-perl
libio-string-perl libipc-run3-perl libiterator-perl libiterator-util-perl libjson-maybexs-perl liblist-compare-perl liblist-someutils-perl liblist-someutils-xs-perl liblist-utilsby-perl
liblwp-mediatypes-perl liblzf1 libmad0 libmailtools-perl libmarkdown2 libmath-base85-perl libmldbm-perl libmodule-implementation-perl libmodule-runtime-perl libmoo-perl
libmoox-aliases-perl libmouse-perl libnamespace-clean-perl libnet-domain-tld-perl libnet-http-perl libnet-ipv6addr-perl libnet-netmask-perl libnet-smtp-ssl-perl libnet-ssleay-perl
libnetaddr-ip-perl libnumber-compare-perl libosinfo-1.0-0 libosinfo-l10n libpackage-stash-perl libpackage-stash-xs-perl libparams-classify-perl libparams-util-perl libpath-tiny-perl
libperlio-gzip-perl libperlio-utf8-strict-perl libphodav-3.0-0 libphodav-3.0-common libproc-processtable-perl libqt6help6 libqt6printsupport6t64 libqt6sql6-sqlite libqt6sql6t64
libqt6statemachine6 libregexp-wildcards-perl librole-tiny-perl libsane-hpaio libsereal-decoder-perl libsereal-encoder-perl libsgutils2-1.46-2 libsocket6-perl libsort-versions-perl
libspice-client-glib-2.0-8 libspice-client-gtk-3.0-5 libstrictures-perl libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl libsub-install-perl libsub-name-perl
libsub-quote-perl libsyntax-keyword-try-perl libterm-readkey-perl libtext-glob-perl libtext-levenshteinxs-perl libtext-markdown-discount-perl libtext-xslate-perl libtie-ixhash-perl
libtime-duration-perl libtime-moment-perl libtimedate-perl libtry-tiny-perl libunicode-utf8-perl libusbredirhost1t64 libvariable-magic-perl libvirt-glib-1.0-0 libvirt-glib-1.0-data
libwhoopsie-preferences0 libwww-robotrules-perl libxatracker2 libxcb-damage0 libxml-xpathengine-perl libxs-parse-keyword-perl libxvmc1 libyaml-libyaml-perl normalize-audio osinfo-db
patchutils perl-openssl-defaults printer-driver-postscript-hp python-babel-localedata python3-attr python3-babel python3-cachetools python3-configobj python3-dateutil python3-debconf
python3-deprecation python3-distro-info python3-distupgrade python3-eyed3 python3-filetype python3-google-auth python3-greenlet python3-jinja2 python3-json-pointer python3-jsonpatch
python3-jsonschema python3-lazr.uri python3-libvirt python3-libxml2 python3-markupsafe python3-mutagen python3-mygpoclient python3-packaging python3-podcastparser python3-problem-report
python3-pyasn1 python3-pyasn1-modules python3-pycryptodome python3-pyparsing python3-pyrsistent python3-rsa python3-serial python3-simplejson python3-sqlalchemy python3-sqlalchemy-ext
python3-systemd python3-tz python3-update-manager python3-uritemplate python3-wadllib python3-websockets spice-client-glib-usb-acl-helper t1utils ubuntu-advantage-desktop-daemon
unattended-upgrades virt-viewer vorbis-tools whoopsie-preferences x11-apps x11-session-utils xbitmaps xinit xserver-xorg-legacy xserver-xorg-video-all xserver-xorg-video-amdgpu
xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-nouveau xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa
xserver-xorg-video-vmware
全局代理apt install upgrade 很卡,发现 阿里解析全变成国外了,只能手动修改
为何 openssl --version 会无法访问,另一台 ubuntu24.04 也是无法访问,但使用功能正常。
如何修复【软件更新器、软件源】
################ 解决方法 ##################
研究一天,希望对别人有用,卸载基础文件,一定要慎重
解决:
代码: 全选
sudo apt update
sudo apt upgrade
sudo apt install
# 我是安装 ubuntu budgie 24.04 ,下面两行,请根据实际情况安装
sudo apt install ubuntu-budgie-desktop
sudo snap install ubuntu-budgie-welcome --classic