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

TVG's questions

Martin Hope
TVG
Asked: 2024-07-23 17:57:01 +0800 CST

我们是否应该等待 LTS 第一个点版本(例如 24.04.1)来从临时版本(例如 23.10)升级?[重复]

  • 5
此问题这里已有答案:
将 LTS 升级到 LTS(服务器) - 为什么要等待第一个点发布? (2 个答案)
昨天休息。

我经常看到有人说最好等到 Ubuntu LTS 版本的第一个版本(例如 24.04.1)发布后再进行升级。这也适用于从临时版本(例如 23.10)升级吗?尤其是当达到的临时版本已过期(EOL)时?

upgrade
  • 1 个回答
  • 79 Views
Martin Hope
TVG
Asked: 2023-08-11 20:55:10 +0800 CST

crontab 不工作

  • 5

以下是我的 crontab 的内容:

toto@toto-pc:~$ crontab -l
# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command

21 15 * * * DISPLAY=:0 /usr/bin/freefilesync /home/toto/Backup_launch/Backup_on_My_Passport.ffs_batch >/home/toto/crontab_log 2>&1
*/10 * * * * /home/toto/Backup_launch/Backup_on_OneDrive.sh

toto@toto-pc:~$

然后,我预计FreeFileSync 每天 15:21 执行Backup_on_My_Passport.ffs_batch批处理作业,并且脚本Backup_on_OneDrive.sh每 10 分钟执行一次。

Backup_on_OneDrive.sh每 10 分钟正确执行一次,但 crontab 永远不会启动Backup_on_My_Passport.ffs_batch。

以下是crontab_log文件的内容:

Authorization required, but no authorization protocol specified

15:21:01: Error: Unable to initialize GTK+, is DISPLAY set properly?

我认为 DISPLAY 的值是正确的:

toto@toto-pc:~$ echo $DISPLAY
:0
toto@toto-pc:~$
bash
  • 2 个回答
  • 59 Views
Martin Hope
TVG
Asked: 2022-05-25 04:03:51 +0800 CST

PyCharm 中的显示问题:离开睡眠模式后出现非常大的空白

  • 0

这是 PyCharm 中空白的正常显示(非常微弱的点):

在此处输入图像描述

如果我离开我的电脑片刻,当我回来并从睡眠模式唤醒电脑时,空格显示如下:

在此处输入图像描述

除了关闭并重新打开 PyCharm 以移除那些丑陋的大点之外,我没有找到任何其他解决方案。

我在 Ubuntu 21.10、Linux 5.13.0-41-generic x86_64 上使用 PyCharm 2022.1.1(社区版)。

xorg
  • 1 个回答
  • 41 Views
Martin Hope
TVG
Asked: 2022-02-17 01:09:08 +0800 CST

crontab 中的 Flatpak 命令在 Ubuntu 21.10 上不执行任何操作

  • 1

我在我的 crontab 中有以下命令来使用 FreeFileSync 进行自动备份。它在 Ubuntu 20.04 上运行良好,但我注意到它在 Ubuntu 21.10 上不再运行。

30 12 * * * DISPLAY=:0 flatpak run org.freefilesync.FreeFileSync /home/toto/Backup.ffs_batch >/dev/null 2>&1

我首先在这篇文章>/dev/null 2>&1中添加了以下建议,因为我在 /var/log/syslog 中发现它产生了以下错误:

(CRON) info (No MTA installed, discarding output)

在以下行之后,我在 /var/log/syslog 中不再有任何错误:

(toto) CMD (DISPLAY=:0 flatpak run org.freefilesync.FreeFileSync /home/toto/Backup.ffs_batch >/dev/null 2>&1)

然而,似乎什么也没有发生。FreeFileSync 永远不会启动。

似乎这里有一个解决方案,涉及卸载 FreeFileSync 的 flatpak 版本并从 FreeFileSync 网站的运行文件重新安装它。我宁愿保留 flatpak 版本,因为它会自动更新包。

非常感谢您的帮助。

编辑:我已替换>/dev/null为>/home/toto/crontab.log将错误重定向到日志文件。这是我得到的错误:

bwrap: Can't find source path /tmp/.X11-unix/X0: No such file or directory

这里有一个关于涉及此类错误的 Flatpak 的讨论,但我不够熟练,无法理解他们建议的解决方案。

backup
  • 1 个回答
  • 94 Views
Martin Hope
TVG
Asked: 2021-09-04 01:59:34 +0800 CST

颜色选择器不起作用

  • 3

Gpick (0.2.6) 在我的电脑 (Ubuntu 20.04.3 LTS) 上不再工作。当我单击“选择颜色”时,我没有在应该放大的小框中看到鼠标周围的显示。此框保持灰色。当我选择一种颜色(按空格键)时,它总是黑色(#000000)。

我已经下载了 Pick (2.0.2) 但它也不起作用。

我在这里也注意到Gpick 应该能够提供颜色名称,但它从未在我的计算机上工作过。在 Edit>Color dictionaries 下,似乎我们可以添加一个颜色字典文件。你知道它是如何工作的吗?

非常感谢您的帮助!

编辑:我正在跑路。

~$ env|grep XDG|grep -e XDG_CURRENT_DESKTOP -e XDG_SESSION_TYPE
XDG_SESSION_TYPE=wayland
XDG_CURRENT_DESKTOP=ubuntu:GNOME
20.04
  • 3 个回答
  • 1337 Views
Martin Hope
TVG
Asked: 2020-09-01 23:50:27 +0800 CST

APT 询问私钥密码?

  • 1

我在 Ubuntu 18.04 上。有时,当我升级我的软件包时,APT 会要求提供Private Key Password。但是,如果什么都不做,几秒钟后,升级会继续正常进行。

APT 询问私钥密码是否正常?

~$ sudo apt dist-upgrade 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
Les paquets suivants seront mis à jour :
  grub-common grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub2-common libpcap0.8
  libpcap0.8:i386
7 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 3,552 ko dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [Y/n] 
Réception de :1 http://mirror.umd.edu/ubuntu bionic-updates/main i386 libpcap0.8 i386 1.8.1-6ubuntu1.18.04.2 [124 kB]
Réception de :2 http://mirror.umd.edu/ubuntu bionic-updates/main amd64 libpcap0.8 amd64 1.8.1-6ubuntu1.18.04.2 [118 kB]
Réception de :3 http://mirror.umd.edu/ubuntu bionic-updates/main amd64 grub-efi-amd64-signed amd64 1.93.20+2.02-2ubuntu8.18 [300 kB]
Réception de :4 http://mirror.umd.edu/ubuntu bionic-updates/main amd64 grub-efi-amd64 amd64 2.02-2ubuntu8.18 [47.9 kB]
Réception de :5 http://mirror.umd.edu/ubuntu bionic-updates/main amd64 grub-efi-amd64-bin amd64 2.02-2ubuntu8.18 [656 kB]
Réception de :6 http://mirror.umd.edu/ubuntu bionic-updates/main amd64 grub2-common amd64 2.02-2ubuntu8.18 [532 kB]
Réception de :7 http://mirror.umd.edu/ubuntu bionic-updates/main amd64 grub-common amd64 2.02-2ubuntu8.18 [1,774 kB]
3,552 ko réceptionnés en 4s (890 ko/s)   
Préconfiguration des paquets...
(Lecture de la base de données... 494289 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../0-libpcap0.8_1.8.1-6ubuntu1.18.04.2_i386.deb ...
Déconfiguration de libpcap0.8:amd64 (1.8.1-6ubuntu1.18.04.1) ...
Dépaquetage de libpcap0.8:i386 (1.8.1-6ubuntu1.18.04.2) sur (1.8.1-6ubuntu1.18.04.1) ...
Préparation du dépaquetage de .../1-libpcap0.8_1.8.1-6ubuntu1.18.04.2_amd64.deb ...
Dépaquetage de libpcap0.8:amd64 (1.8.1-6ubuntu1.18.04.2) sur (1.8.1-6ubuntu1.18.04.1) ...
Préparation du dépaquetage de .../2-grub-efi-amd64-signed_1.93.20+2.02-2ubuntu8.18_amd64.deb ...
Dépaquetage de grub-efi-amd64-signed (1.93.20+2.02-2ubuntu8.18) sur (1.93.19+2.02-2ubuntu8.17) ...
Préparation du dépaquetage de .../3-grub-efi-amd64_2.02-2ubuntu8.18_amd64.deb ...
Dépaquetage de grub-efi-amd64 (2.02-2ubuntu8.18) sur (2.02-2ubuntu8.17) ...
Préparation du dépaquetage de .../4-grub-efi-amd64-bin_2.02-2ubuntu8.18_amd64.deb ...
Dépaquetage de grub-efi-amd64-bin (2.02-2ubuntu8.18) sur (2.02-2ubuntu8.17) ...
Préparation du dépaquetage de .../5-grub2-common_2.02-2ubuntu8.18_amd64.deb ...
Dépaquetage de grub2-common (2.02-2ubuntu8.18) sur (2.02-2ubuntu8.17) ...
Préparation du dépaquetage de .../6-grub-common_2.02-2ubuntu8.18_amd64.deb ...
Enter Private Key Password: 
Dépaquetage de grub-common (2.02-2ubuntu8.18) sur (2.02-2ubuntu8.17) ...
Paramétrage de grub-common (2.02-2ubuntu8.18) ...
Installation de la nouvelle version du fichier de configuration /etc/grub.d/10_linux ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Paramétrage de libpcap0.8:amd64 (1.8.1-6ubuntu1.18.04.2) ...
Paramétrage de libpcap0.8:i386 (1.8.1-6ubuntu1.18.04.2) ...
Paramétrage de grub-efi-amd64-bin (2.02-2ubuntu8.18) ...
Paramétrage de grub2-common (2.02-2ubuntu8.18) ...
Paramétrage de grub-efi-amd64 (2.02-2ubuntu8.18) ...
Installation pour la plate-forme x86_64-efi.
Installation terminée, sans erreur.
Sourcing file `/etc/default/grub'
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/vmlinuz-4.15.0-112-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.15.0-112-generic
Image Linux trouvée : /boot/vmlinuz-4.15.0-111-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.15.0-111-generic
Adding boot menu entry for EFI firmware configuration
fait
Paramétrage de grub-efi-amd64-signed (1.93.20+2.02-2ubuntu8.18) ...
Installation pour la plate-forme x86_64-efi.
Installation terminée, sans erreur.
Traitement des actions différées (« triggers ») pour systemd (237-3ubuntu10.42) ...
Traitement des actions différées (« triggers ») pour man-db (2.8.3-2ubuntu0.1) ...
Traitement des actions différées (« triggers ») pour ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
Traitement des actions différées (« triggers ») pour install-info (6.5.0.dfsg.1-2) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.27-3ubuntu1.2) ...
Traitement des actions différées (« triggers ») pour shim-signed (1.37~18.04.6+15+1533136590.3beb971-0ubuntu1) ...
Secure Boot not enabled on this system.
~$
grub2 upgrade ssh apt 18.04
  • 1 个回答
  • 177 Views
Martin Hope
TVG
Asked: 2020-05-29 23:34:49 +0800 CST

如何在 Ubuntu 18.04 的 LAN 中访问 Canon PIXMA TS8351?

  • 1

我有一个佳能 PIXMA TS8351通过 WiFi 在 LAN 中连接到路由器。我可以从不同的 Windows 计算机访问、打印和扫描,但我不知道如何从Ubuntu 18.04上的计算机访问打印机。

在我的 Ubuntu 计算机上,我下载了在佳能网站上找到的以下驱动程序:IJ Printer Driver v. 5.90 for Linux和ScanGear MP v. 3.90 for Linux。我尝试安装第一个,但安装失败,因为未检测到打印机。

但是,使用system-config-printer命令,当我连接到 localhost 时,我可以看到打印机并且测试页的打印工作正常。但是,当我在系统设置中打开打印机时,我收到一条错误消息,类似于(法语翻译):“抱歉!系统的打印服务似乎不可用”。

我试图删除并重新安装杯子,但它不会产生任何变化。

注意:我试图在这里放一些命令行输出以提供可能有帮助的信息,但 AskUbuntu 抱怨“这看起来像垃圾邮件”......

非常感谢您的帮助!

drivers printing canon lan 18.04
  • 1 个回答
  • 329 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