我从 Ubuntu 20.04 更改为 24.04。现在时钟显示错误的时间(早了 3 个小时)。当我打开系统设置来修复此问题时,单击“日期和时间”时程序崩溃。有人能帮帮我吗?
我正在尝试排除导致数据包丢失的防火墙规则故障。
我设置了 TRACE 并得到以下结果:
TRACE: 1 79de9f86 filter:input:rule:0x17:DROP
我如何找到引用了哪条特定规则并导致数据包丢失?
我正在尝试在一台新的 Ubuntu 24.04 机器上安装 postgresql。令我惊讶的是,
$ sudo apt update
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu noble InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:5 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7,532 B]
Hit:6 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease
Get:7 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7,468 B]
Get:8 http://us.archive.ubuntu.com/ubuntu noble-updates/universe i386 Packages [167 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [384 kB]
Get:10 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7,462 B]
Get:11 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 c-n-f Metadata [14.9 kB]
Get:12 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7,461 B]
Fetched 721 kB in 1s (497 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
失败了:
$ sudo apt install postgresql
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package postgresql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'postgresql' has no installation candidate
据我所知,这个包应该可用,上面的情况是意料之外的。我肯定做了一些事情弄乱了我的计算机,但我不确定是什么。任何帮助都非常感谢。
我经常使用这个功能,可以在同一应用程序的窗口之间切换,例如文件浏览器。通常是按 ALT+½(总是在重启后),但它突然消失了,我现在不想重启。
当我运行此逗号时出现以下错误
sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
accountsservice-ubuntu-schemas alacarte gnome-applets gnome-applets-data
gnome-panel gnome-panel-data gnome-screensaver gstreamer1.0-gtk3
indicator-applet indicator-appmenu indicator-bluetooth indicator-datetime
indicator-keyboard indicator-messages indicator-power indicator-printers
indicator-session indicator-sound jayatana libabw-0.1-1 libaccounts-glib0
libavahi-ui-gtk3-0 libbamf3-2 libboost-date-time1.71.0
libboost-filesystem1.71.0 libboost-iostreams1.71.0 libboost-locale1.71.0
libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcpufreq0
libe-book-0.1-1 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-7
libexttextcat-2.0-0 libexttextcat-data libfcitx-gclient1 libfcitx-utils0
libfreehand-0.1-1 libfreerdp-client2-2 libfreerdp2-2 libgnome-panel0
libgpgmepp6 libgucharmap-2-90-7 libido3-0.1-0 libjuh-java libjurt-java
liblangtag-common liblangtag1 liblightdm-gobject-1-0 libmessaging-menu0
libmhash2 libmspub-0.1-1 libmwaw-0.3-3 libmythes-1.2-0 libnatpmp1
libneon27-gnutls libodfgen-0.1-1 liborcus-0.15-0 libpagemaker-0.0-0
libpanel-applet3 libraptor2-0 librasqal3 librdf0 libridl-java
libunity-gtk2-parser0 libunity-gtk3-parser0 libuno-cppu3
libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3
libuno-salhelpergcc3-3 libunoloader-java liburl-dispatcher1 libvncclient1
libwinpr2-2 libwps-0.4-4 libxmlsec1 libxmlsec1-nss libyajl2 lp-solve
ubuntu-touch-sounds unity-gtk-module-common unity-gtk2-module
unity-gtk3-module unity-settings-daemon-schemas uno-libs-private ure
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
dbus dbus-x11 libavahi-client3:i386 libavahi-common-data:i386
libavahi-common3:i386 libcom-err2:i386 libcups2:i386 libdbus-1-3
libdbus-1-3:i386 libexpat1:i386 libfreetype6:i386 libfribidi0:i386
libgail-common:i386 libgail18:i386 libgdk-pixbuf2.0-0:i386 libgmp10:i386
libgssapi-krb5-2:i386 libgtk2.0-0:i386 libharfbuzz0b:i386 libhogweed5:i386
libicu66:i386 libjbig0:i386 libk5crypto3:i386 libkeyutils1:i386
libkrb5-3:i386 libkrb5support0:i386 liblz4-1:i386 libnettle7:i386
libnss-systemd libp11-kit0:i386 libpam-systemd libpcre2-8-0:i386
libpcre3:i386 libpixman-1-0:i386 libssl1.1:i386 libsystemd0 libsystemd0:i386
libtiff5:i386 libwebp6:i386 libxml2:i386 libzstd1:i386 systemd systemd-sysv
systemd-timesyncd
Suggested packages:
krb5-doc:i386 krb5-user:i386 librsvg2-common:i386 gvfs:i386
systemd-container
The following NEW packages will be installed:
libsystemd0:i386
The following packages will be upgraded:
dbus dbus-x11 libavahi-client3:i386 libavahi-common-data:i386
libavahi-common3:i386 libcom-err2:i386 libcups2:i386 libdbus-1-3
libdbus-1-3:i386 libexpat1:i386 libfreetype6:i386 libfribidi0:i386
libgail-common:i386 libgail18:i386 libgdk-pixbuf2.0-0:i386 libgmp10:i386
libgssapi-krb5-2:i386 libgtk2.0-0:i386 libharfbuzz0b:i386 libhogweed5:i386
libicu66:i386 libjbig0:i386 libk5crypto3:i386 libkeyutils1:i386
libkrb5-3:i386 libkrb5support0:i386 liblz4-1:i386 libnettle7:i386
libnss-systemd libp11-kit0:i386 libpam-systemd libpcre2-8-0:i386
libpcre3:i386 libpixman-1-0:i386 libssl1.1:i386 libsystemd0 libtiff5:i386
libwebp6:i386 libxml2:i386 libzstd1:i386 systemd systemd-sysv
systemd-timesyncd
43 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
139 not fully installed or removed.
Need to get 0 B/22.0 MB of archives.
After this operation, 1,341 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 225599 files and directories currently installed.)
Preparing to unpack .../liblz4-1_1.9.2-2ubuntu0.20.04.1_i386.deb ...
Unpacking liblz4-1:i386 (1.9.2-2ubuntu0.20.04.1) over (1.9.2-2) ...
dpkg: error processing archive /var/cache/apt/archives/liblz4-1_1.9.2-2ubuntu0.2
0.04.1_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/liblz4-1/changelog.Debian.gz', which
is different from other instances of package liblz4-1:i386
Errors were encountered while processing:
/var/cache/apt/archives/liblz4-1_1.9.2-2ubuntu0.20.04.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
罗技 G915 (TKL 键盘)
所以,故事是这样的:我通过“特殊”程序(而不是 gnome,如 autokey 和其他程序)调整键盘配置,现在功能键不再起作用了……
我尝试重置键盘配置、布局、一切……
我已经尝试过
dconf reset -f /org/gnome
了dpkg-reconfigure keyboard-configuration
现在我要让 FN 键再次工作的唯一解决方法是:
- 登录到第二个用户(之前创建的、未动过的、未使用过的用户),该用户仍可使用 FN 键,
- 注销,
- 切换回我的用户。
瞧,这就是让它们再次运转起来的“诀窍”......
我已经运行了
xev
,evtest
和showkey
,除非我执行“解决方法”,否则 FN 键永远无法被检测到,之后在这 3 个程序中可以再次被检测到。我已经卸载了定制第二个键盘(小键盘)所需的一些守护进程和程序...
我已经将两个用户中运行的守护进程进行了比较
service --status-all
,systemctl | grep "running"
以防万一有某些守护进程修改了一些东西……但在解决方法之前和之后:系统进程是相同的我检查了我的
~/.config
文件夹,它与第二个用户的没有什么不同我也从 升级到
Ubuntu 20.x
了Ubuntu 22.04.5
,但无济于事。
线索:
- 它可能是我的用户中的某个东西,我无法处理它,
- 这可能与 X 服务器有关?gnome 似乎在切换用户后没有保留错误的配置
- 重启后,如果我登录到第二个用户,FN 键可以正常工作,并且在切换到我的第一个用户时继续起作用...所以这只是我的第一个用户的配置缺陷......
我只有 1 个键盘:Logitek G915 TKL
,从命令行配置时,我选择列表中唯一最近的?键盘:Logitech G15 extra keys via G15 daemon
Computer: Asus P50N (minibox, not a laptop)
Ubuntu 22.04.5 LTS
Gnome version: 42.9
6.8.0-45
我目前正在尝试按照类似于此处提到的步骤编译自定义的 Ubuntu Jammy (22.04) HWE 内核版本。我正在对iwlwifi
驱动程序应用一些补丁。
以下是我的分步过程:
git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy && cd jammy
git checkout Ubuntu-hwe-6.8-6.8.0-45.45_22.04.1
git switch -c my_branch/6.8.0-45_iwl_patch
- 将我的更改应用到
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
文件 git add . && git commit -m "My commit message"
cp /boot/config-$(uname -r) .config
sed -i 's/CONFIG_LOCALVERSION=""/CONFIG_LOCALVERSION="-ricciolino"/g' .config
make oldconfig
fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic
一切工作正常,直到第 10 步,我在构建过程中遇到以下错误:
(my_branch/6.8.0-45_iwl_patch)> fakeroot debian/rules binary-headers binary-generic
Debug: /opt/my-kernel/jammy/debian/stamps/stamp-prepare-indep
dh_prep -i
[ -d /opt/my-kernel/jammy/debian/stamps/ ] || mkdir /opt/my-kernel/jammy/debian/stamps/; touch /opt/my-kernel/jammy/debian/stamps/stamp-prepare-indep
Debug: /opt/my-kernel/jammy/debian/stamps/stamp-install-headers
dh_testdir
install -d /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45
find . -path './debian' -prune -o -path './debian.hwe-6.8' -prune \
-o -path './include/*' -prune \
-o -path './scripts/*' -prune -o -type f \
\( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Kbuild*' -o \
-name '*.sh' -o -name '*.pl' -o -name '*.lds' \) \
-print | cpio -pd --preserve-modification-time /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45
27658 blocks
cp -a scripts include /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45
(find arch -name include -type d -print | \
xargs -n1 -i: find : -type f) | \
cpio -pd --preserve-modification-time /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45
xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value
cpio: /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45/arch/powerpc/include/uapi/asm/Kbuild not created: newer or same age version exists
...
<more cpio lines>
...
cpio: /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45/arch/x86/include/asm/Kbuild not created: newer or same age version exists
28358 blocks
# Do not ship .o and .cmd artifacts in headers
find /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45 -name \*.o -or -name \*.cmd -exec rm -f {} \;
[ -d /opt/my-kernel/jammy/debian/stamps/ ] || mkdir /opt/my-kernel/jammy/debian/stamps/; touch /opt/my-kernel/jammy/debian/stamps/stamp-install-headers
Debug: binary-headers
dh_installchangelogs -plinux-hwe-6.8-headers-6.8.0-45
dh_installdocs -plinux-hwe-6.8-headers-6.8.0-45
dh_compress -plinux-hwe-6.8-headers-6.8.0-45
dh_fixperms -plinux-hwe-6.8-headers-6.8.0-45
dh_installdeb -plinux-hwe-6.8-headers-6.8.0-45
flock -w 60 /opt/my-kernel/jammy/debian/.LOCK dh_gencontrol -plinux-hwe-6.8-headers-6.8.0-45
dh_md5sums -plinux-hwe-6.8-headers-6.8.0-45
dh_builddeb -plinux-hwe-6.8-headers-6.8.0-45
dpkg-deb: building package 'linux-hwe-6.8-headers-6.8.0-45' in '../linux-hwe-6.8-headers-6.8.0-45_6.8.0-45.45~22.04.1_all.deb'.
x86_64-linux-gnu-gcc-12 debian/scripts/fix-filenames.c -o debian/scripts/fix-filenames
Debug: /opt/my-kernel/jammy/debian/stamps/stamp-prepare-tree-generic
install -d /opt/my-kernel/jammy/debian/build/build-generic
touch /opt/my-kernel/jammy/debian/build/build-generic/ubuntu-build
python3 debian/scripts/misc/annotations --export --arch amd64 --flavour generic > /opt/my-kernel/jammy/debian/build/build-generic/.config
sed -i 's/.*CONFIG_VERSION_SIGNATURE.*/CONFIG_VERSION_SIGNATURE="Ubuntu 6.8.0-45.45~22.04.1-generic 6.8.12"/' /opt/my-kernel/jammy/debian/build/build-generic/.config
find /opt/my-kernel/jammy/debian/build/build-generic -name "*.ko" | xargs rm -f
make ARCH=x86 CROSS_COMPILE=x86_64-linux-gnu- HOSTCC=x86_64-linux-gnu-gcc-12 CC=x86_64-linux-gnu-gcc-12 BINDGEN=bindgen-0.65 KERNELRELEASE=6.8.0-45-generic CONFIG_DEBUG_SECTION_MISMATCH=y KBUILD_BUILD_VERSION="45~22.04.1" CFLAGS_MODULE="-DPKG_ABI=45" PYTHON=python3 O=/opt/my-kernel/jammy/debian/build/build-generic -j24 rustavailable || true
make[1]: Entering directory '/opt/my-kernel/jammy'
make[2]: Entering directory '/opt/my-kernel/jammy/debian/build/build-generic'
***
*** Rust bindings generator 'bindgen-0.65' could not be found.
***
***
*** Please see Documentation/rust/quick-start.rst for details
*** on how to set up the Rust support.
***
make[3]: *** [/opt/my-kernel/jammy/Makefile:1718: rustavailable] Error 1
make[2]: *** [/opt/my-kernel/jammy/Makefile:240: __sub-make] Error 2
make[2]: Leaving directory '/opt/my-kernel/jammy/debian/build/build-generic'
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/opt/my-kernel/jammy'
make ARCH=x86 CROSS_COMPILE=x86_64-linux-gnu- HOSTCC=x86_64-linux-gnu-gcc-12 CC=x86_64-linux-gnu-gcc-12 BINDGEN=bindgen-0.65 KERNELRELEASE=6.8.0-45-generic CONFIG_DEBUG_SECTION_MISMATCH=y KBUILD_BUILD_VERSION="45~22.04.1" CFLAGS_MODULE="-DPKG_ABI=45" PYTHON=python3 O=/opt/my-kernel/jammy/debian/build/build-generic -j24 olddefconfig
make[1]: Entering directory '/opt/my-kernel/jammy'
make[2]: Entering directory '/opt/my-kernel/jammy/debian/build/build-generic'
***
*** The source tree is not clean, please run 'make ARCH=x86 mrproper'
*** in /opt/my-kernel/jammy
***
make[3]: *** [/opt/my-kernel/jammy/Makefile:646: outputmakefile] Error 1
make[2]: *** [/opt/my-kernel/jammy/Makefile:240: __sub-make] Error 2
make[2]: Leaving directory '/opt/my-kernel/jammy/debian/build/build-generic'
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/opt/my-kernel/jammy'
make: *** [debian/rules.d/2-binary-arch.mk:23: /opt/my-kernel/jammy/debian/stamps/stamp-prepare-tree-generic] Error 2
怎么了 ?
感谢支持
我想知道我是否可以在美国合法安装和使用 Ubuntu Restricted Codecs 元包?我如何才能免费访问这些专有编解码器?
我最近将我的 Lenovo ThinkPad X1 Yoga 4th Gen 换成了 Ubuntu 24。我使用这台电脑工作,自从换了之后就无法使用我们办公室的打印机打印了。我们办公室有两台打印机,我可以打印到我们医疗办公室的 Canon MF 1643i II,但不能打印到 Canon IR AdvanceDX C3835i。我在设置的打印机列表中可以看到这两台打印机,但我只能从 Canon MF 打印。
我已经安装了 cups 并检查它是否正在运行。我已在 localhost:361 上调出 cups gui,并尝试使用我的机器的名称和密码登录,但没有成功。现在当我尝试时,管理页面不会要求我提供凭据,只是说未经授权。我希望得到帮助,重新访问 cups 管理页面,或者找到一种不需要 gui 即可添加打印机的解决方法。在很多方面,我绝对是一个 Linux 新手,所以请知道我需要一些基本的手把手指导。提前谢谢大家!