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

Jedi's questions

Martin Hope
Jedi
Asked: 2023-12-11 12:02:00 +0800 CST

签名无效

  • 5

我正在运行 Ubuntu 22.04,并尝试按照此处的说明安装 UniFi 网络服务器。

root@orac:/home/mike# sudo apt-get update && sudo apt-get install ca-certificates apt-transport-https
Hit:1 http://nz.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://nz.archive.ubuntu.com/ubuntu jammy-updates InRelease              
Hit:3 http://nz.archive.ubuntu.com/ubuntu jammy-backports InRelease            
Get:4 https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04 ./ InRelease [1,604 B]
Hit:5 https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu jammy InRelease
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Fetched 1,604 B in 3s (508 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20230311ubuntu0.22.04.1).
ca-certificates set to manually installed.
The following NEW packages will be installed:
  apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 1,510 B of archives.
After this operation, 170 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://nz.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 apt-transport-https all 2.4.11 [1,510 B]
Fetched 1,510 B in 0s (4,899 B/s)               
Requesting to save current system state
Successfully saved as "autozsys_pl49je"
Selecting previously unselected package apt-transport-https.
(Reading database ... 447867 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.4.11_all.deb ...
Unpacking apt-transport-https (2.4.11) ...
Setting up apt-transport-https (2.4.11) ...
ZSys is adding automatic system snapshot to GRUB menu
root@orac:/home/mike# echo 'deb [ arch=amd64,arm64 ] https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
deb [ arch=amd64,arm64 ] https://www.ui.com/downloads/unifi/debian stable ubiquiti
root@orac:/home/mike# sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
--2023-12-11 16:46:44--  https://dl.ui.com/unifi/unifi-repo.gpg
Resolving dl.ui.com (dl.ui.com)... 65.9.142.121
Connecting to dl.ui.com (dl.ui.com)|65.9.142.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1196 (1.2K)
Saving to: ‘/etc/apt/trusted.gpg.d/unifi-repo.gpg’

/etc/apt/trusted.gp 100%[===================>]   1.17K  --.-KB/s    in 0s      

2023-12-11 16:46:44 (1.47 GB/s) - ‘/etc/apt/trusted.gpg.d/unifi-repo.gpg’ saved [1196/1196]

root@orac:/home/mike# wget -qO - https://www.mongodb.org/static/pgp/server-3.6.asc | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
root@orac:/home/mike# echo "deb https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
deb https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 multiverse
root@orac:/home/mike# sudo apt-get update
Hit:1 http://nz.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://nz.archive.ubuntu.com/ubuntu jammy-updates InRelease              
Hit:3 http://nz.archive.ubuntu.com/ubuntu jammy-backports InRelease            
Ign:4 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 InRelease     
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease               
Get:6 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release [2,495 B]
Get:7 https://dl.ui.com/unifi/debian stable InRelease [2,292 B]                
Get:8 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release.gpg [801 B]
Ign:8 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release.gpg   
Get:9 https://dl.ui.com/unifi/debian stable/ubiquiti amd64 Packages [714 B]
Get:10 https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04 ./ InRelease [1,604 B]
Get:11 https://dl.ui.com/unifi/debian stable/ubiquiti arm64 Packages [714 B]
Hit:12 https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu jammy InRelease
Reading package lists... Done
W: https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: GPG error: https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release: The following signatures were invalid: EXPKEYSIG 58712A2291FA4AD5 MongoDB 3.6 Release Signing Key <[email protected]>
E: The repository 'https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@orac:/home/mike# sudo apt-get update && sudo apt-get install unifi -y
Hit:1 http://nz.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://nz.archive.ubuntu.com/ubuntu jammy-updates InRelease              
Hit:3 http://nz.archive.ubuntu.com/ubuntu jammy-backports InRelease            
Hit:4 https://dl.ui.com/unifi/debian stable InRelease                          
Ign:5 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 InRelease     
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease               
Get:7 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release [2,495 B]
Get:8 https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04 ./ InRelease [1,604 B]
Get:9 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release.gpg [801 B]
Hit:10 https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu jammy InRelease
Ign:9 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release.gpg
Reading package lists... Done
W: https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: GPG error: https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release: The following signatures were invalid: EXPKEYSIG 58712A2291FA4AD5 MongoDB 3.6 Release Signing Key <[email protected]>
E: The repository 'https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@orac:/home/mike# sudo service unifi status
Unit unifi.service could not be found.

有谁知道如何解决这一问题?

我认为这与此有关:

root@orac:/home/mike# apt update
Hit:1 http://nz.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://nz.archive.ubuntu.com/ubuntu jammy-updates InRelease                                                                                                     
Hit:3 http://nz.archive.ubuntu.com/ubuntu jammy-backports InRelease                                                                                                   
Hit:4 https://dl.ui.com/unifi/debian stable InRelease                                                                                                                 
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                                                      
Ign:6 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 InRelease                                                                                    
Get:7 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release [2,495 B]                                                      
Get:8 https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04 ./ InRelease [1,604 B]
Get:9 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release.gpg [801 B]
Ign:9 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release.gpg
Hit:10 https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu jammy InRelease                                                                                 
Reading package lists... Done                                                                                                                                         
W: https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: GPG error: https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release: The following signatures were invalid: EXPKEYSIG 58712A2291FA4AD5 MongoDB 3.6 Release Signing Key <[email protected]>
E: The repository 'https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

为什么说签名无效?

我在这里尝试了解决方案:

mike@orac:~$ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 58712A2291FA4AD5
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.pKHz7AaGfL/gpg.1.sh --keyserver keys.gnupg.net --recv-keys 58712A2291FA4AD5
gpg: keyserver receive failed: Server indicated a failure

还尝试了评论部分指出的解决方案:

mike@orac:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 58712A2291FA4AD5
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.umOksSwsow/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 58712A2291FA4AD5
gpg: key 58712A2291FA4AD5: "MongoDB 3.6 Release Signing Key <[email protected]>" 1 new signature
gpg: Total number processed: 1
gpg:         new signatures: 1
mike@orac:~$ sudo apt update
Hit:1 http://nz.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://nz.archive.ubuntu.com/ubuntu jammy-updates InRelease                                                                                                                                  
Hit:3 http://nz.archive.ubuntu.com/ubuntu jammy-backports InRelease                                                                                                                                                      
Hit:4 https://dl.ui.com/unifi/debian stable InRelease                                                                                                                                                                                         
Ign:5 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 InRelease                                                                                                                                                                    
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                                                                              
Get:7 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release [2,495 B]                                                      
Get:8 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release.gpg [801 B]                   
Get:9 https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04 ./ InRelease [1,604 B]
Hit:10 https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu jammy InRelease
Ign:8 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release.gpg
Reading package lists... Done
W: https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: GPG error: https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release: The following signatures were invalid: EXPKEYSIG 58712A2291FA4AD5 MongoDB 3.6 Release Signing Key <[email protected]>
E: The repository 'https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
mongodb
  • 2 个回答
  • 950 Views
Martin Hope
Jedi
Asked: 2021-01-14 01:34:59 +0800 CST

由于软件包损坏,ubuntu-drivers 自动安装不起作用

  • 3

我正在运行 Ubuntu 20.04。

有谁知道我该如何解决这个问题?

root@Ubuntu19-04:~# ubuntu-drivers autoinstall
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:
 linux-modules-nvidia-460-generic-hwe-18.04-edge : Depends: linux-modules-nvidia-460-5.4.0-60-generic (= 5.4.0-60.67~18.04.1) but 5.4.0-60.67 is to be installed
                                                   Depends: nvidia-kernel-common-460 (<= 460.32.03-1) but it is not going to be installed
                                                   Depends: nvidia-kernel-common-460 (>= 460.32.03) but it is not going to be installed
 nvidia-driver-460 : Depends: libnvidia-gl-460 (= 460.32.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: nvidia-kernel-common-460 (<= 460.32.03-1) but it is not going to be installed
                     Depends: nvidia-kernel-common-460 (>= 460.32.03) but it is not going to be installed
                     Depends: nvidia-kernel-source-460 (= 460.32.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-extra-460 (= 460.32.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-decode-460 (= 460.32.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-encode-460 (= 460.32.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: nvidia-utils-460 (= 460.32.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: xserver-xorg-video-nvidia-460 (= 460.32.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-cfg1-460 (= 460.32.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-ifr1-460 (= 460.32.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-fbc1-460 (= 460.32.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Recommends: libnvidia-decode-460:i386 (= 460.32.03-0ubuntu0.20.04.1)
                     Recommends: libnvidia-encode-460:i386 (= 460.32.03-0ubuntu0.20.04.1)
                     Recommends: libnvidia-ifr1-460:i386 (= 460.32.03-0ubuntu0.20.04.1)
                     Recommends: libnvidia-fbc1-460:i386 (= 460.32.03-0ubuntu0.20.04.1)
                     Recommends: libnvidia-gl-460:i386 (= 460.32.03-0ubuntu0.20.04.1)
E: Unable to correct problems, you have held broken packages.

我试过了dpkg --configure -a,apt install -f但无济于事。

nvidia
  • 2 个回答
  • 9690 Views
Martin Hope
Jedi
Asked: 2020-12-22 23:38:50 +0800 CST

软件和更新屏幕为空白

  • 2

我正在运行 Ubuntu 20.04

打开时软件和更新屏幕是空白的。

在此处输入图像描述

有谁知道如何从命令行启动软件和更新 GUI?

然后我可以运行pgrep -fl以检查任何孤立的进程。

root@mail:~# apt show software-properties-gtk
Package: software-properties-gtk
Version: 0.98.9.3
Priority: optional
Section: gnome
Source: software-properties
Origin: Ubuntu
Maintainer: Michael Vogt <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 456 kB
Depends: gir1.2-goa-1.0 (>= 3.27.92-1ubuntu1), gir1.2-gtk-3.0, gir1.2-snapd-1 (>= 1.42), libgtk3-perl, python3, python3-dateutil, python3-distro-info, python3-gi, python3-requests-unixsocket, python3-software-properties (= 0.98.9.3), software-properties-common, ubuntu-drivers-common (>= 1:0.2.75), dconf-gsettings-backend | gsettings-backend, python3:any
Recommends: gnome-keyring, gnome-session-bin | xfce4-session | mate-session-manager
Task: ubuntu-desktop-minimal, ubuntu-desktop, xubuntu-core, xubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Download-Size: 64.0 kB
APT-Manual-Installed: no
APT-Sources: http://mirror.fsmg.org.nz/ubuntu focal-updates/main amd64 Packages
Description: manage the repositories that you install software from (gtk)
 This software provides an abstraction of the used apt repositories.
 It allows you to easily manage your distribution and independent software
 vendor software sources.
 .
 This package contains a GTK+ based graphical interface.

N: There are 2 additional records. Please use the '-a' switch to see them.
update-manager
  • 2 个回答
  • 569 Views
Martin Hope
Jedi
Asked: 2020-04-29 01:05:37 +0800 CST

从 19.04 升级到 19.10 问题

  • 3

我在 zfs 上有 Ubuntu 19.04 root。在尝试升级到 19.10 时,我遇到了此处描述的问题。

根据这里的解决方案是更换

initrd_device=$(${grub_probe} --target=device "${boot_dir}")

在 /etc/grub.d/10_linux_zfs 的第 415 行中

initrd_device=$(${grub_probe} --target=device "${boot_dir}" | head -1)

由于某种原因,我的 /etc/grub.d/ 目录中没有名为 10_linux_zfs 的文件,只有一个名为 10_linux 的文件。

这里提供了一个修改过的 10_linux_zfs 文件。

我想知道用修改后的 10_linux_zfs 文件替换我的 10_linux 文件是否是正确的解决方案。

对此的任何帮助将不胜感激。

编辑:

在没有得到对这个问题的回应后,我最终用修改后的 10_linux_zfs 示例文件替换了我的 10_linux 文件并继续升级。除了mysql,一切似乎都很顺利。

    mike@ubuntuzfs:~$ systemctl status mysql.service
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2020-05-01 20:56:41 NZST; 12s ago
  Process: 2457 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
  Process: 2468 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
 Main PID: 2468 (code=exited, status=1/FAILURE)
   Status: "Server startup in progress"
    Error: 13 (Permission denied)

May 01 20:56:41 ubuntuzfs systemd[1]: mysql.service: Service RestartSec=100ms expired, scheduling restart.
May 01 20:56:41 ubuntuzfs systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
May 01 20:56:41 ubuntuzfs systemd[1]: Stopped MySQL Community Server.
May 01 20:56:41 ubuntuzfs systemd[1]: mysql.service: Start request repeated too quickly.
May 01 20:56:41 ubuntuzfs systemd[1]: mysql.service: Failed with result 'exit-code'.
May 01 20:56:41 ubuntuzfs systemd[1]: Failed to start MySQL Community Server.

我可以重新安装 mysql,但这可能意味着我丢失了我的数据库,如果可能的话我宁愿不这样做。如果有人对如何解决这个问题有任何建议,那就太好了。

这是 /var/log/mysql/error.log 的一些输出

2020-05-01T08:33:28.900379Z 0 [Warning] [MY-011068] [Server] The   syntax 'expire-logs-days' is deprecated and will be removed in a future   release. Please use binlog_expire_logs_seconds instead.
2020-05-01T08:33:28.901172Z 0 [System] [MY-010116] [Server] /usr/sbin   /mysqld (mysqld 8.0.19-0ubuntu0.19.10.3) starting as process 7461
2020-05-01T08:33:35.575977Z 4 [System] [MY-013381] [Server] Server     upgrade from '80018' to '80019' started.
2020-05-01T08:34:37.114642Z 4 [ERROR] [MY-012097] [InnoDB] Table flags     are 0x4021 in the data dictionary but the flags in file    ./sys/sys_config.ibd  are 0x21!
2020-05-01T08:34:37.115249Z 4 [ERROR] [MY-013183] [InnoDB] Assertion  failure: fil0fil.cc:2465 thread 140266608400128
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/8.0/en/forcing-innodb- recovery.html
InnoDB: about forcing recovery.
08:34:37 UTC - mysqld got signal 6 ;
Most likely, you have hit a bug, but this error can also be caused by     malfunctioning hardware.
Thread pointer: 0x5602c47e22e0
Attempting backtrace. You can use the following information to find  out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7f925d5e0ce0 thread_stack 0x30000
/usr/sbin/mysqld(my_print_stacktrace(unsigned char const*, unsigned     long)+0x41) [0x5602c236cb11]
/usr/sbin/mysqld(handle_fatal_signal+0x31b) [0x5602c1269bcb]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x15540) [0x7f927032e540]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb) [0x7f926f7ce3eb]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x12b) [0x7f926f7ad899]
/usr/sbin/mysqld(+0xdc766d) [0x5602c0fbe66d]
/usr/sbin/mysqld(Fil_shard::get_file_size(fil_node_t*, bool)+0xb1d)   [0x5602c278cecd]
/usr/sbin/mysqld(Fil_shard::open_file(fil_node_t*, bool)+0x4b3)  [0x5602c279d893]
/usr/sbin/mysqld(Fil_shard::prepare_file_for_io(fil_node_t*,  bool)+0x73) [0x5602c279daa3]
/usr/sbin/mysqld(Fil_shard::space_load(unsigned int)+0x129)     [0x5602c27ad829]
/usr/sbin/mysqld(fil_space_get_flags(unsigned int)+0xb8)  [0x5602c27adde8]
/usr/sbin/mysqld(dict_sdi_create_idx_in_mem(unsigned int, bool,    unsigned int, bool)+0x6f5) [0x5602c2725975]
/usr/sbin/mysqld(dd_table_open_on_id(unsigned long, THD*,   MDL_ticket**, bool, bool)+0x86f) [0x5602c27581ef]
/usr/sbin/mysqld(+0x2469f46) [0x5602c2660f46]
/usr/sbin/mysqld(ib_sdi_delete(unsigned int, ib_sdi_key const*,    trx_t*)+0x49) [0x5602c26651e9]
/usr/sbin/mysqld(dict_sdi_delete(dd::Tablespace const&, dd::Table    const*, sdi_key_t const*)+0x14a) [0x5602c276f6ca]
/usr/sbin/mysqld(dd::sdi_tablespace::drop_tbl_sdi(THD*, handlerton    const&, dd::Table const&, dd::Schema const&)+0x89) [0x5602c2344369]
/usr/sbin/mysqld(dd::sdi::drop(THD*, dd::Table const*)+0xb8)  [0x5602c2339428]
/usr/sbin/mysqld(bool dd::cache::Storage_adapter::drop<dd::Table> (THD*, dd::Table const*)+0x6a) [0x5602c217252a]
/usr/sbin/mysqld(bool dd::cache::Dictionary_client::drop<dd::Table>  (dd::Table const*)+0x22) [0x5602c211d762]
/usr/sbin/mysqld(+0xfc5d4a) [0x5602c11bcd4a]
/usr/sbin/mysqld(mysql_alter_table(THD*, char const*, char const*,   HA_CREATE_INFO*, TABLE_LIST*, Alter_info*)+0x8dc3) [0x5602c11d3ec3]
/usr/sbin/mysqld(Sql_cmd_alter_table::execute(THD*)+0x443)     [0x5602c1580443]
/usr/sbin/mysqld(mysql_execute_command(THD*, bool)+0x94c)   [0x5602c11370cc]
/usr/sbin/mysqld(+0xf6c167) [0x5602c1163167]
/usr/sbin     /mysqld(Prepared_statement::execute_server_runnable(Server_runnable*)+0x23   5) [0x5602c1164445]
/usr/sbin/mysqld(Ed_connection::execute_direct(Server_runnable*)+0x9e)   [0x5602c1165c7e]
/usr/sbin/mysqld(Ed_connection::execute_direct(MYSQL_LEX_STRING)+0x3f)  [0x5602c1165dff]
/usr/sbin/mysqld(+0x2119e2f) [0x5602c2310e2f]
/usr/sbin/mysqld(dd::upgrade::upgrade_system_schemas(THD*)+0x1318)   [0x5602c2314ab8]
/usr/sbin/mysqld(+0x1130998) [0x5602c1327998]
/usr/sbin/mysqld(+0x26d773a) [0x5602c28ce73a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x9669) [0x7f9270322669]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f926f8aa323]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f920439ae60): is an invalid pointer
Connection ID (thread ID): 4
Status: NOT_KILLED

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html     contains
information that should help you find out what is causing the crash.
grub2 upgrade mysql zfs
  • 1 个回答
  • 667 Views
Martin Hope
Jedi
Asked: 2019-01-05 18:49:35 +0800 CST

无法重新安装 samba

  • 1

我正在运行 Ubuntu Server 18.04。

2018 年 12 月 10 日,桑巴舞停止工作。我知道那是一天,因为我每天都用 Macrium Reflect 将我的 Windows 计算机备份到 Ubuntu Server,几个月来一直没有问题,但从那天起它一直在报告错误。我没有更改或做任何我知道会导致此问题的事情。从那天起,我无法从任何其他计算机(Linux 或 Windows)访问 Ubuntu Server 计算机上的任何 samba 共享,也无法从 Ubuntu Server 计算机访问任何 samba 共享,尽管之前能够毫无问题地访问。smbtree没有返回任何东西。有趣的是,nmap 显示端口 139 和 445 在 Ubuntu Server 上运行时打开,但在从另一台计算机扫描时关闭?我已经尝试了很多方法来解决这个问题,包括添加client max protocol = NT1在 smb.conf 文件的 [global] 部分下。我尝试将 smb.conf 文件替换为相同文件的副本,该文件使 samba 在另一台 linux 计算机上完美运行。我试过这个,我试过那个,没有任何效果。所以最后我决定删除并重新安装 samba 并重新开始。

sudo apt-get remove --purge samba samba-*
sudo apt-get autoremove

重新安装 samba 后,它似乎已安装但无法启动。

据我所知,问题是这样的:

/usr/sbin/smbd: error while loading shared libraries: libreplace.so.0: cannot open shared object file: No such file or directory

这篇文章似乎在说它是一个错误?

这篇文章似乎是在说我“从不同的来源安装了不同且相互冲突的 samba 版本”,但我不这么认为。我只用过apt安装软件。

任何真正的 Ubuntu Jedi 都可以帮助想要成为 Ubuntu Jedi 的人吗?

谢谢大家:-)

networking samba
  • 1 个回答
  • 1360 Views
Martin Hope
Jedi
Asked: 2018-02-03 22:30:09 +0800 CST

尝试安装 qjournalctl 时出现编译错误

  • 2

我正在尝试安装qjournalctl。

在安装之前我做了:

sudo apt-get install libxtst-dev build-essential libqt4-dev qt4-qmake cmake gcc g++ qt4-dev-tools libusb-1.0.0-dev

我下载了 zip 文件并将其解压缩。我进入目录并运行 ./autogen.sh ,它没有报告任何错误。但是,当我运行 make 时,我得到了这个。任何建议将不胜感激。

/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/mainwindow.ui -o ui_mainwindow.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/aboutdialog.ui -o      ui_aboutdialog.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/showbootlog.ui -o  ui_showbootlog.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB     -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr    /include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o     main.o src/main.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB  -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr /include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o  mainwindow.o src/mainwindow.cpp
In file included from src/mainwindow.cpp:10:0:
./ui_mainwindow.h: In member function ‘void    Ui_MainWindow::setupUi(QMainWindow*)’:
./ui_mainwindow.h:114:20: error: ‘class QTableView’ has no member named  ‘setSizeAdjustPolicy’; did you mean ‘setSizePolicy’?
      tableView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
                ^~~~~~~~~~~~~~~~~~~
                setSizePolicy
./ui_mainwindow.h:114:61: error: ‘AdjustToContents’ is not a member of   ‘QAbstractScrollArea’
       tableView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
                                                         ^~~~~~~~~~~~~~~~
src/mainwindow.cpp: In member function ‘void   MainWindow::on_tableView_doubleClicked(const QModelIndex&)’:
src/mainwindow.cpp:141:64: warning: unused parameter ‘index’ [-Wunused- parameter]
 void MainWindow::on_tableView_doubleClicked(const QModelIndex &index)
                                                            ^~~~~
src/mainwindow.cpp: In member function ‘void   MainWindow::on_tableView_clicked(const QModelIndex&)’:
src/mainwindow.cpp:172:58: warning: unused parameter ‘index’ [-Wunused- parameter]
 void MainWindow::on_tableView_clicked(const QModelIndex &index)
                                                      ^~~~~
Makefile:250: recipe for target 'mainwindow.o' failed
make: *** [mainwindow.o] Error 1
software-installation compiling make
  • 2 个回答
  • 692 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