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-165511

tgkprog's questions

Martin Hope
tgkprog
Asked: 2022-02-15 02:02:56 +0800 CST

do-release-upgrade 在为“删除过时的软件包”选择 D 后如何继续?

  • 1

我在 20.04,我在终端上运行的命令进行升级:

sudo apt dist-upgrade
sudo apt update
sudo apt dist-upgrade
sudo apt-get install update-manager-core
sudo gedit /etc/update-manager/release-upgrades
do-release-upgrade
sudo apt dist-upgrade 
sudo apt-mark unhold   mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
sudo apt dist-upgrade
sudo apt full-upgrade  
do-release-upgrade

被问了很多问题......希望我们有办法进行试运行,查看所有问题,在文本文件中回答它们,然后开始这个过程,找到文本文件以获取答案(一行问题,下一行我们的答案,如果有任何新问题,在试运行中没有找到 - 自动默认或提示我们的选项)

无论如何被问到:

读取状态信息...完成

删除过时的软件包?

将删除 140 个包裹。

移除包裹可能需要几个小时。

继续 [yN] 详情 [d]d

选择 D. 向我展示了包裹,然后展示了 (END),见图

但是看了名单之后,就不清楚怎么恢复了。按 Y(什么也没发生),然后按 Esc,然后按 Ctrl-Z,它退出了安装过程。

现在lsb_release -a 说我在 Ubuntu 21.10 上,但如何删除这些文件?为什么进程退出?

从可用性的角度来看,如果它在显示选择时告诉我如何恢复,将会有所帮助......

command-line
  • 1 个回答
  • 216 Views
Martin Hope
tgkprog
Asked: 2021-07-24 23:58:12 +0800 CST

在具有自动更新的 Ubuntu 20.04 上安装 VS Code [重复]

  • 0
这个问题在这里已经有了答案:
如果一个包既可以作为 deb 也可​​以作为 snap,哪种方法更可取? (6 个回答)
将 PPA 添加到我的系统是否安全?需要注意哪些“危险信号”? (8 个回答)
6 个月前关闭。

我确实看到了如何卸载 Visual Studio Code?和https://code.visualstudio.com/docs/setup/linux

提到 snap 和 apt 作为自动更新安装的方式。想知道通过最新的稳定更改获得它的方法是什么?我通常通过apt安装,但是这里首先列出了snap,有什么好处吗?只是试图选择最好的,所以我不需要处理将我带到网站以再次下载 .deb 文件并像我最初一样手动安装它的更新通知。

(我还查看了为什么 Visual Studio Code 更新不会在 20.04 上运行?它谈到了从下载的 .deb 手动安装我不想要那个)。

当我从 repo 安装时,还有什么方法可以导出设置、卸载然后重新导入它们?它在代码首选项中讨论同步,但不确定同步的位置和方式,也看不到同步的帐户。

apt
  • 2 个回答
  • 1481 Views
Martin Hope
tgkprog
Asked: 2021-07-16 07:59:58 +0800 CST

通过命令行获取远程时间,使用 TZ 将其设置为本地时钟

  • 0

我正在试验时钟。在本地盒子上更改它。在那之后,谷歌和其他 SSL 网站停止工作,所以我无法获得准确的当地时间(我没有戴手表)。幸运的是,电话在另一个房间里,所以我把它拿了出来,然后设置了时间。

但是自动化以及我在不允许使用电话的数据中心的时候呢?是否有命令行方式来查询非 SSL 远程位置以获取 UTC 时间?

Cherry 将用于获取您当地时区并设置当地时间的工具,但我也可以这样做,只会关闭几秒钟......但可以通过重复来调整它

date -s "xxx"直到准确为止。

我查看了如何使用 curl 命令获取日期和时间?,但是当我使用时ntpq -c 'rv 0 clock' 139.59.15.185,我得到以下输出:

139.59.15.185: timed out, nothing received

***Request timed out

和命令:

ntpq -c 'rv 0 clock' ntp.ubuntu.com

输出:

ntp.ubuntu.com: timed out, nothing received

***Request timed out

以下是 的内容sudo nano /etc/ntp.conf:

# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift

# Leap seconds definition provided by tzdata leapfile /usr/share/zoneinfo/leap-seconds.list

# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats filegen loopstats file
loopstats type day enable filegen peerstats file peerstats type day
enable filegen clockstats file clockstats type day enable

# Specify one or more NTP servers.

# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information. pool 0.ubuntu.pool.ntp.org iburst pool 1.ubuntu.pool.ntp.org iburst pool 2.ubuntu.pool.ntp.org iburst pool 3.ubuntu.pool.ntp.org iburst

# Use Ubuntu's ntp s...
command-line
  • 1 个回答
  • 48 Views
Martin Hope
tgkprog
Asked: 2020-04-30 15:39:41 +0800 CST

默认 Firefox 浏览器不播放某些内容

  • 0

我无法播放大多数 Twitter 帖子中的视频,例如https://twitter.com/doglab/status/1255593258916499458?s=20。但是,Chrome 会播放它们。

此外,是否有任何推荐的安装集可供高级用户在获得 Ubuntu 20.04 后一两天内完成,以获得最常用的视频编解码器和其他工具?

解决了

sudo apt update

sudo apt upgrade -y

sudo apt install ffmpeg

和 ubuntu-restricted-extra 通过“软件和更新”面板中的复选框 - > https://postimg.cc/yWx4qS90

选中复选框的软件和更新面板

firefox video google-chrome codecs 20.04
  • 1 个回答
  • 858 Views
Martin Hope
tgkprog
Asked: 2020-01-11 12:03:18 +0800 CST

如何在 Ubuntu 18.04.3 上安装 Java 13?(也适用于 20.04)

  • 2

如何从具有 sudo 权限的终端在 Ubuntu 18.04.3 上安装 Java 13?

software-installation java
  • 1 个回答
  • 1902 Views
Martin Hope
tgkprog
Asked: 2019-05-15 11:51:36 +0800 CST

ftp 18.10 没有路由到主机异常

  • 0

尝试连接到服务器 ftp.sel2in.com 但得到

ftp
ftp> 打开 ftp.sel2in.com

ftp:连接:没有到主机的路由

FTP>

与 filezilla 客户端相同

我可以 ping 和 ssh 进入服务器。在我 ssh 之后,我可以从那个 shell 做一个 ftp。不是该服务器的管理员,在上面拥有一个带有 php 和 mysql 的文件夹(如果有帮助,请访问 x10hosting.com)

ftp 18.10
  • 1 个回答
  • 666 Views
Martin Hope
tgkprog
Asked: 2019-05-07 10:39:21 +0800 CST

哪个服务负责我的网络?如何刷新 DNS Ubuntu 18.04.2 LTS?

  • 5

几周前我更改了我的 DNS 设置。它解决了这个问题,我忘了它,但现在我不记得我做了什么改变,因为我从 askubuntu 复制了一些命令,它工作......

现在我想刷新我的 DNS,但是当我这样做时,如何在 Ubuntu 17.04 上刷新 DNS?我收到这条消息:

sudo systemd-resolve --flush-caches

刷新缓存失败:未找到单元 dbus-org.freedesktop.resolve1.service。

  1. 流行的 Ubuntu 18.04 网络提供商有哪些?
  2. 如何刷新我的 DNS 以及如何从命令行知道它的 TTL 或其中记录的 TTL?

跑步:Ubuntu 18.04.2 LTS

sudo apt-get install whois
networking dns 18.04
  • 1 个回答
  • 12872 Views
Martin Hope
tgkprog
Asked: 2016-06-20 11:11:25 +0800 CST

无法运行 mksdcard SDK 工具 ubuntu 16, 2016

  • 2

已关注如何在 Ubuntu 上安装 Android Studio?安装安卓工作室。但出现错误(硬件:aspire e15 E5-573G):

从https://dl.google.com/android/android-sdk_r22.6.2-linux.tgz下载 android-sdk_r22.6.2-linux.tgz 解压 android-sdk_r22.6.2-linux.tgz tar xzvfC /tmp/AndroidStudio0FirstRun/android -sdk_r22.6.2-linux.tgz /tmp/AndroidStudio0FirstRun/android-sdk_r22.6.2-linux.tgz-unpacked

无法运行 mksdcard SDK 工具。

它是一个新的 ubuntu 安装。刚刚使用了firefox和文本编辑器。之前(一年前)使用过 ubuntu,但第一次使用 android studio。我不得不在 /opt 文件夹中使用 sudo 命令启动 android

然后移动到 ~/apps (主文件夹中的一个新文件夹,做了一个:

sudo chmod 777 *
sudo chmod -R 777 *

但仍然是同样的错误。

  • 然后发现无法运行 mksdcard SDK 工具”在安装 android studio 的情况下我应该怎么做?但那些包也没有安装

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

software-installation
  • 1 个回答
  • 6997 Views
Martin Hope
tgkprog
Asked: 2015-07-25 05:25:36 +0800 CST

aspire e 15 上没有无线设备 [重复]

  • 1
这个问题在这里已经有了答案:
如何在 Ubuntu 14.04 LTS 中启用 Wifi 连接 [重复] (1 个回答)
6 年前关闭。

买了宏碁 aspire e15。widows 7 或 8 随附。禁用新引导,可以看到 Ubuntu USB,已安装但没有无线。LAN(有线)工作正常。

意识到已经放了 32 位,现在正在“尝试”从使用 32 位启动磁盘创建器制作的 USB 中的 14.4 64 位。

仍然看不到无线(当我打开顶部的网络区域时,部分不存在)

请参阅http://postimg.org/image/gll0p0bxt/920b14c9/ 命令:

rfkill list 
0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no 

1: acer-wireless: Wireless LAN
    Soft blocked: no
    Hard blocked: no

网络脚本的输出

########## wireless info START ##########

Report from: 24 Jul 2015 13:15 UTC +0000

Booted last: 24 Jul 2015 13:01 UTC +0000

Script from: 14 Jul 2015 17:04 UTC +0000

##### release ###########################

Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty

##### kernel ############################

Linux 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

noprompt, cdrom-detect/try-usb=true, persistent, file=/cdrom/preseed/ubuntu.seed, boot=casper, initrd=/casper/initrd.lz, quiet, splash, --, maybe-ubiquity

##### desktop ###########################

Ubuntu

##### lspci #############################

02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)  Subsystem: Acer Incorporated [ALI] Device [1025:0987]   Kernel driver in use: r8169

03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 30)     Subsystem: Lite-On Communications Inc Device [11ad:0806]

04:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1299] (rev a1)

##### lsusb #############################

Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 006: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 002 Device 005: ID 1bcf:2c81 Sunplus Innovation Technology Inc.
Bus 002 Device 004: ID 04ca:3015 Lite-On Technology Corp.
Bus 002 Device 003: ID 046d:c077 Logitech, Inc.
Bus 002 Device 002: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 102 Flash Drive / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

##### PCMCIA card info ##################

##### rfkill ############################

0: hci0: Bluetooth  Soft blocked: no    Hard blocked: no 1: acer-wireless: Wireless LAN     Soft blocked: no    Hard blocked: no

##### lsmod #############################

iwlwifi               179412  0
cfg80211              494330  1
iwlwifi acer_wmi       32522  0
sparse_keymap          13948  1
acer_wmi mxm_wmi       13021  1
nouveau video          20128  3
i915,acer_wmi,nouveau wmi     19193  3
acer_wmi,mxm_wmi,nouveau

##### interfaces ########################

auto lo iface lo inet loopback

##### ifconfig ##########################

eth0      Link encap:Ethernet  HWaddr <MAC 'eth0' [IF]>  
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::<IP6 'eth0' [IF]>/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:51939 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32765 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:69204275 (69.2 MB)  TX bytes:2643770 (2.6 MB)

##### iwconfig ##########################

eth0      no wireless extensions.

lo        no wireless extensions.

##### route #############################

Kernel IP routing table Destination     Gateway         Genmask        Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0

##### resolv.conf #######################

nameserver 127.0.1.1

##### network managers ##################

Installed:

    NetworkManager

Running:

root      3641     1  0 13:01 ?        00:00:00 NetworkManager

##### NetworkManager info ###############

NetworkManager Tool

State: connected (global)

- Device: eth0  [Wired connection 1] -------------------------------------------   Type:              Wired   Driver:            r8169   State:             connected   Default:     yes   HW Address:        <MAC 'eth0' [IF]>

  Capabilities:
    Carrier Detect:  yes
    Speed:           100 Mb/s

  Wired Properties
    Carrier:         on

  IPv4 Settings:
    Address:         192.168.1.4
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.1.1

    DNS:             192.168.1.1

##### NetworkManager.state ##############

[main] NetworkingEnabled=true WirelessEnabled=true WWANEnabled=true WimaxEnabled=true

##### NetworkManager.conf ###############

[main] plugins=ifupdown,keyfile,ofono dns=dnsmasq

[ifupdown] managed=false

##### NetworkManager profiles ###########

##### iw reg get ########################

Region: Etc/UTC (based on set time zone)

country 00:     (2402 - 2472 @ 40), (3, 20)     (2457 - 2482 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS  (2474 - 2494 @ 20), (3, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS     (5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS  (5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS

##### iwlist channels ###################

eth0      no frequency information.

lo        no frequency information.

##### iwlist scan #######################

eth0      Interface doesn't support scanning.

lo        Interface doesn't support scanning.

##### module infos ######################

[iwlwifi] filename:       /lib/modules/3.16.0-30-generic/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko license:        GPL author:         Copyright(c) 2003- 2014 Intel Corporation <[email protected]> version:        in-tree: description:    Intel(R) Wireless WiFi driver for Linux firmware:      iwlwifi-100-5.ucode firmware:       iwlwifi-1000-5.ucode firmware:     iwlwifi-135-6.ucode firmware:       iwlwifi-105-6.ucode firmware:      iwlwifi-2030-6.ucode firmware:       iwlwifi-2000-6.ucode firmware:    iwlwifi-5150-2.ucode firmware:       iwlwifi-5000-5.ucode firmware:    iwlwifi-6000g2b-6.ucode firmware:       iwlwifi-6000g2a-5.ucode firmware:       iwlwifi-6050-5.ucode firmware:       iwlwifi-6000-4.ucode firmware:       iwlwifi-7265-9.ucode firmware:    iwlwifi-3160-9.ucode firmware:       iwlwifi-7260-9.ucode firmware:    iwlwifi-8000-8.ucode srcversion:     D335B9FC08B25C4ADA0BD33 depends:  cfg80211 intree:         Y vermagic:       3.16.0-30-generic SMP mod_unload modversions  signer:         Magrathea: Glacier signing key sig_key:        7B:E2:A7:20:0F:17:F0:0C:A0:11:F7:0E:5A:87:4C:37:E3:E0:F6:BE sig_hashalgo:   sha512 parm:           swcrypto:using crypto in software (default 0 [hardware]) (int) parm:           11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint) parm:           amsdu_size_8K:enable 8K amsdu size (default 0) (int) parm:           fw_restart:restart firmware in case of error (default true) (bool) parm:           antenna_coupling:specify antenna coupling in dB (defualt: 0 dB) (int) parm:           wd_disable:Disable stuck queue watchdog timer 0=system default, 1=disable (default: 1) (int) parm:    nvm_file:NVM file name (charp) parm:           uapsd_disable:disable U-APSD functionality (default: N) (bool) parm:           bt_coex_active:enable wifi/bt co-exist (default: enable) (bool) parm:  led_mode:0=system default, 1=On(RF On)/Off(RF Off), 2=blinking, 3=Off (default: 0) (int) parm:           power_save:enable WiFi power management (default: disable) (bool) parm:           power_level:default power save level (range from 1 - 5, default: 1) (int) parm:           fw_monitor:firmware monitor - to debug FW (default: false - needs lots of memory) (bool)

[cfg80211] filename:       /lib/modules/3.16.0-30-generic/kernel/net/wireless/cfg80211.ko description:    wireless configuration support license:        GPL author:         Johannes Berg srcversion:     DEE8EAA48495E392CD51C2D depends:         intree:         Y vermagic:       3.16.0-30-generic SMP mod_unload modversions  signer:         Magrathea: Glacier signing key sig_key:        7B:E2:A7:20:0F:17:F0:0C:A0:11:F7:0E:5A:87:4C:37:E3:E0:F6:BE sig_hashalgo:   sha512 parm:           ieee80211_regdom:IEEE 802.11 regulatory domain code (charp) parm:           cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[iwlwifi] 11n_disable: 0 amsdu_size_8K: 0 antenna_coupling: 0 bt_coex_active: Y fw_monitor: N fw_restart: Y led_mode: 0 nvm_file: (null) power_level: 0 power_save: N swcrypto: 0 uapsd_disable: N wd_disable: 1

[cfg80211] cfg80211_disable_40mhz_24ghz: N ieee80211_regdom: 00

##### /etc/modules ######################

##### modprobe options ##################

[/etc/modprobe.d/blacklist-ath_pci.conf] blacklist ath_pci

[/etc/modprobe.d/blacklist.conf] blacklist evbug blacklist usbmouse blacklist usbkbd blacklist eepro100 blacklist de4x5 blacklist eth1394 blacklist snd_intel8x0m blacklist snd_aw2 blacklist i2c_i801 blacklist prism54 blacklist bcm43xx blacklist garmin_gps blacklist asus_acpi blacklist snd_pcsp blacklist pcspkr blacklist amd76x_edac

[/etc/modprobe.d/blacklist-rare-network.conf] alias net-pf-3 off alias net-pf-6 off alias net-pf-9 off alias net-pf-11 off alias net-pf-12 off alias net-pf-19 off alias net-pf-21 off alias net-pf-36 off

[/etc/modprobe.d/iwlwifi.conf] remove iwlwifi \ (/sbin/lsmod | grep -o
-e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \ && /sbin/modprobe -r mac80211

[/etc/modprobe.d/mlx4.conf] softdep mlx4_core post: mlx4_en

[/etc/modprobe.d/modesetting.conf] options cirrus modeset=1 options mgag200 modeset=1

##### rc.local ##########################

exit 0

##### pm-utils ##########################

##### udev rules ########################

[/etc/udev/rules.d/70-persistent-net.rules]
# PCI device 0x10ec:0x8168 (r8169) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC 'eth0' [IF]>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

##### dmesg #############################

########## wireless info END ############

在 Windows 上,无线工作正常(如果我选择新的启动方式,可以重新启动它:启动时按 f2...)

14.04
  • 1 个回答
  • 5327 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