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

Estatistics's questions

Martin Hope
Estatistics
Asked: 2023-07-12 17:29:08 +0800 CST

查找文件名中的特殊字符并将其复制到新文件夹中。文件名可能包含奇怪的非 ASCII 字符和特殊字符

  • 6

我喜欢将文件名中带有特殊字符“|”的所有文件(不是管道文件)复制到一个文件夹中。但是,我有几个问题,因为文件名可能包含 ascii 字符而不是 ascii 字符、单引号和双引号或特殊字符,例如。*%& 等。当使用 -print0 和 -0 时,Xargs 会打印错误。如果我不使用这些,xargs 会说不匹配的单引号。

不知道该怎么办。

find .  -type f -print0 | grep -i "|"   | xargs -0 cp {} ident/
grep: binary file matches
cp: cannot stat '{}': 

这是文件名示例...

Tus\ -\ Οπλοπολυβόλο\ ft\ Μάριος\ Τσιτσόπουλος\ -\ Official\ Video\ Clip\ [PBfXwWeZMMs].webm
Tus\ -\ Όσα\ δε\ σου\ 'χα\ πει\ Prod.\ John\ Thanos\ -\ Official\ Audio\ Release\ [BPn8Ec-V2sE].webm
TUS\ -\ Όσο\ μ'\ αρέσει\ (2000)\ |\ TUS\ -\ Oso\ m\ aresei\ (2000)\ [0Rk0s_lm400].webm
Tus\ -\ Ούτε\ Για\ Ζήτω\ |\ Oute\ Gia\ Zito\ -\ Official\ Video\ Clip\ [5O26LLx8P2M].webm
Tus\ -\ Πεθαίνουν\ Για\ Μένα\ Prod.\ Dennis\ Cage\ -\ Official\ Audio\ Release\ [RXcHhAStC9E].webm
Tus\ -\ Πεθαίνουν\ Για\ Μένα\ Prod.\ Dennis\ Cage\ -\ Official\ Video\ Clip\ [FGMXALlsxw8].webm
Tus\ -\ Πιτσιρικάκι\ Remix\ prod.\ Άρχοντας\ [sKykzuIesio].mp4
Tus\ -\ Πιτσιρικάκι\ Remix\ prod.\ Άρχοντας\ [sKykzuIesio].webm
Tus\ -\ Που\ είναι\ τα\ λεφτά\ |\ Tus\ -\ Pou\ einai\ ta\ lefta\ -\ Official\ Video\ Clip\ [-FO3JcGRrfY].webm
Tus\ -\ Πρώτος\ Στα\ Trends\ Prod.\ Jumper\ -\ Official\ Video\ Clip\ [QOEGjsuchJk].webm
TUS\ -\ Πρώτος\ στο\ σχολείο\ -\ Music\ Μαρία\ Γιαννίκου\ Prod.\ Stoic-\ Official\ Video\ Clip\ [OcArxVsbsP0].webm
Tus\ -\ Πως\ Tus\ Prod.\ Dennis\ Cage\ [umYraDKf7zs].webm
Tus\ -\ Ραπ\ εμπορικό\ κάλαντο\ [wqTZfqzRiqg].webm
Tus\ -\ Ρε\ Μανα\ prod.\ Jusa\ Riddim\ (#onetake\ video)\ [9TnNqO6ejo8].webm
Tus\ -\ Ρούφα\ το\ τρομπόνι\ Prod.\ Fus\ Guest\ Star\ Emilia\ Barak\ -\ Official\ Video\ Clip\ [pIa1BcHROW0].webm
Tus\ &\ Σάκης\ Βέρρος\ -\ Μόνη\ -\ Prod\ Fus\ -\ Official\ Video\ Clip\ [jarzXp8PG9I].webm
Tus\ -\ Σάττι\ Μαρίνα\ |\ Tus\ -\ Satti\ Marina\ \ -\ Official\ Audio\ Release\ [lko2Hbph4z4].webm
TUS\ -\ Σε\ θέλω\ (2000)\ |\ TUS\ -\ Se\ thelo\ (2000)\ [iTHQkjMO3x4].webm
Tus\ &\ Σεξπυρ\ -\ Μουνάρα\ μεν\ αλλά\ πουτάνα\ |\ Tus\ &\ Sexpyr\ -\ Mounara\ Men\ Alla\ Poutana\ [I0zsTpXlhoI].webm
Tus\ &\ Σεξπυρ\ -\ Περνάω\ μηνύματα\ |\ Tus\ &\ Sexpyr\ -\ Pernaw\ minimata\ [hDUJpHYVy5A].webm
Tus\ -\ Σουβλάκι\ Κλαρίνο\ &\ Freddo\ Cappuccino\ Prod.\ John\ Thanos\ -\ Official\ Video\ Clip\ [wvGOtnKMmD8].webm
Tus\ -\ στο\ STAR\ κουτσομπολιό\ να\ γίνεται\ [-YmSmDc8Rjw].webm
Tus\ στο\ Your\ Face\ Sounds\ familiar\ by\ Ματθίλδη\ Μαγγίρα\ [6omhM-paNtk].webm
Tus\ -\ Στοματικό\ στον\ Νικόλα\ -\ live\ στο\ Μαρούσι\ |\ Tus\ -\ Stomatiko\ Ston\ Nikola\ -\ Live\ Sto\ Marousi\ [u5FzJLtr92M].webm
TUS\ -\ Συνέντευξη\ στο\ Mad\ Day\ Live\ |\ TUS-\ Interview\ at\ Mad\ Day\ Live\ [PGHPcwNobLM].webm
TUS\ -\ Σχετικά\ με\ το\ τραγούδι\ βουλγάρες\ [Zc7m-kwSAok].webm
Tus\ -\ Σώτης\ Βολάνης\ -\ Άραβας\ θέλω\ να\ γίνω\ (Fus\ RmX)\ -\ Lyric\ Video\ [t76ncm-XzYU].webm
Tus\ -\ Τα\ Nike\ Prod.\ Minelli\ -\ Official\ Video\ Clip\ [_-MonH-qfBs].webm
Tus\ -\ Τα\ κακά\ κορίτσια\ (prod.\ John\ Thanos)\ -\ Official\ Audio\ Release\ [_ShvOJ4n78I].webm
Tus\ -\ Τάμα\ ft\ \ Γωγώ\ Τσαμπά\ -\ Official\ Audio\ Release\ [jj0ETUs5ykQ].webm
Tus\ -\ Τα\ Παιδιά\ Στη\ Γειτονιά\ prod.\ Dennis\ Cage\ |\ Official\ Video\ Clip\ [8bpiW3r3Na0].webm
Tus\ -\ Τα\ Φυτά\ Prod.\ Fus\ -\ Official\ Video\ Clip\ [1Jk03sTptsk].webm
Tus\ -\ Τελευταία\ Φορά\ Prod.\ Strazdine\ -\ Official\ Video\ Clip\ [xoaA673qYzk].webm
Tus\ -\ Τι\ Θέλεις\ Να\ Κάνω\ Prod.\ Minelli\ -\ Official\ Video\ Clip\ [wdrZileylN8].webm
TUS\ -\ \ 'Το\ αντίθετο\ ακριβώς'\ -\ Mad\ Day\ Live\ [KPuojlPOVYw].webm
TUS\ -\ \ "Το\ αντίθετο\ ακριβώς"\ -\ Mad\ Day\ Live\ [KPuojlPOVYw].webm
Tus\ -\ Το\ Καπέλο\ Μου\ |\ To\ Kapelo\ Mou\ -\ Official\ Lyric\ Video\ [iWpBXwGGTbU].webm
TUS\ -\ ΤΟ\ ΚΟΥΜΠΙ\ PROD\ STOIC\ \ |\ \ TUS\ -\ TO\ KOUMPI\ PROD.\ STOIC\ [KGLm0JcARvM].webm
Tus\ -\ Το\ μνι\ -\ Live\ στο\ Γκάζι\ [SHn8lIv0d44].webm
TUS\ -\ Το\ ταξίδι\ που\ διάλεξες\ (2000)\ |\ TUS\ -\ To\ taksidi\ pou\ dialekses\ (2000)\ [ts-SEBjjRuA].webm
Tus\ -\ Το\ Χαπάκι\ ft\ \ Λευτέρης\ Βαζαίος\ -\ Official\ Audio\ Release\ [aElkC3VpsfE].webm
Tus\ -\ Τραγικό\ Φινάλε\ (Bάλε,\ Βάλε)\ -\ Official\ Audio\ Release\ [vgEVVKzbAdY].webm
Tus\ -\ Τσι\ -\ γκάνι\ Prod.\ John\ Thanos\ -\ Official\ Audio\ Release\ [XPRq7sMrBco].webm
Tus\ -\ Τσι\ -\ γκάνι\ Prod.\ John\ Thanos\ -\ Official\ Video\ Clip\ [K5bU4Vzbfps].webm
Tus\ -\ Τσίπρας\ Αλέξης\ |\ Tsipras\ Alexis\ -\ Official\ Audio\ Release\ [EKYEDxTzhr8].webm
Tus\ &\ Ύποπτος\ &\ Άρχοντας\ -\ Είμαι\ Χαρμάνης\ -\ Official\ Audio\ Release\ [JuoheCbO2DI].webm
Tus\ -\ Υστεροφημία\ Prod.\ Dennis\ Cage\ [HCJPuUfiH-M].webm
Tus\ -\ Φάντασμα\ ft\ \ Μαρία\ Γιαννίκου\ -\ Official\ Audio\ Release\ [d_pIsZKakgY].webm
Tus\ -\ Φιδίσιο\ Freestyle\ |\ Tus\ Fidisio\ Freestyle\ [J2rR7NVMppc].mp4
Tus\ -\ Φιλάκια\ -\ Official\ Audio\ Release\ [9oWXk788-i4].webm
TUS\ -\ (Φώτης\ και\ Μαρία\ Live)\ STAR\ CHANNEL\ 'www.facebook.com_tus.h.tusis'\ [j8evM82JQTk].webm
TUS\ -\ (Φώτης\ και\ Μαρία\ Live)\ STAR\ CHANNEL\ "www.facebook.com⧸tus.h.tusis"\ [j8evM82JQTk].webm
Tus\ &\ Χαρά\ Βέρρα\ -\ Μαργαρίτες\ (Fus\ RMX)\ |\ Tus\ &\ Xara\ Verra\ -\ Margarites\ \ (Fus\ RMX)\ [ZbJ9y_g1Gug].webm
Tus\ -\ Χειροβομβίδα\ ft\ Πωλίνα\ -\ Official\ Audio\ Release\ [5cUpE4e1thw].webm
Tus\ -\ χόρτο\ ρε\ βλάκα\ |\ Tus\ -\ xorto\ re\ vlaka\ [7eAt1LR8oCc].webm
Tus\ -\ Ψυχανάλυση\ Prod.\ Dennis\ Cage\ [qF31-0C7Now].webm
Tus\ -\ Деньги\ да\ Prod\ Slavic\ Boys\ TM\ -\ Official\ Video\ Clip\ [kZHk7jzcv3U].webm
Tus\ -\ 母親\ -\ Prod.\ Dennis\ Cage\ -\ Official\ Video\ Clip\ [9aKmlSYjSvo].webm
Vibrator\ |\ Son\ Of\ The\ Beats\ [2fUf-DA6Tlk].webm
ΑΚ-47\ -\ 'Αλφα\ Κάππα\ (Tus,\ Αρχο)\ |\ AK-47\ -\ Alfa\ Kappa\ (Tus,\ Arxo)\ -\ Official\ Audio\ Release\ [6H-WVcGrJTA].webm
ΑΚ-47\ -\ \ Η\ καλύτερη\ μέρα\ για\ να\ πεθάνεις\ (Tus,\ Άρχο)\ -\ Official\ Audio\ Release\ [84-6QG-wtOg].webm
ΑΚ-47\ -\ Κιλά\ (Tus,\ Αρχο)\ |\ AK-47\ -\ Kila\ (Tus,\ Arxo)\ -\ Official\ Audio\ Release\ [EaEBPI0Jglo].webm
ΑΚ-47\ -\ Κομμάτια\ (Tus,\ Άρχο)\ -\ Official\ Audio\ Release\ [LM_ktSiwmS4].webm
ΑΚ-47\ -\ Πάνω\ Στο\ Κ*υλί\ (Tus,\ Αρχο)\ |\ AK-47\ -\ Pano\ Sto\ K*vli\ (Tus,\ Arxo)\ -\ Official\ Audio\ Release\ [guhXF56CZGs].webm
ΑΚ-47\ -\ Πέρα\ στους\ πέρα\ κάμπους\ (Tus,\ Άρχο)\ -\ Official\ Audio\ Release\ [vsIo39dXAUA].webm
ΑΚ-47\ -\ Στον\ Πυθμένα\ (Tus,\ Άρχο)\ -\ Official\ Audio\ Release\ [UjE5oc_togg].webm
ΑΚ-47\ -\ Το\ κρίμα\ στον\ λαιμό\ σου\ (Tus,\ Άρχο)\ -\ Official\ Audio\ Release\ [_IULOiX9uDw].webm
Αντώνης\ Γαμπιεράκης\ -\ Είτε\ τότε\ είτε\ τώρα\ ft\ Ματθαίος\ Γιαννούλης\ &\ Tus\ -\ Prod\ Fus\ -\ Video\ Clip\ [YmhR82DYeeE].webm
Γιάννης\ Μαυρίδης\ ft.\ TUS\ -\ Θεσσαλονίκη\ -\ Official\ Video\ Clip\ [e6D6P277LSc].webm
Γιάννης\ Μαυρίδης\ &\ Tus\ -\ Πόσο\ του\ μηνός\ -\ Official\ Audio\ Release\ [Z7Yw_AsE2uA].webm
Γιώργος\ Λιάτης\ ft.\ Tus\ -\ Η\ πιο\ ωραία\ στην\ Ευρώπη\ I\ Giorgos\ Liatis\ ft.\ Tus\ -\ I\ pio\ oraia\ stin\ evropi\ [fAOoqtWiMWc].webm
Η\ Tus\ ή\ Tusis\ Productions\ σας\ εύχεται\ καλές\ γιορτές.\ [i2Bfb6g_huI].webm
Λευτέρης\ Πανταζής\ feat.\ Tus\ -\ Έρωτας\ |\ Lefteris\ Pantazis\ feat.\ Tus\ -\ Erotas\ [L7tcmHQveBY].webm
Λευτέρης\ Πανταζής\ feat.\ Tus\ -\ Έρωτας\ |\ Lefteris\ Pantazis\ feat.\ Tus\ -\ Erotas\ [P9aOpLZAMyA].webm
Νάντια\ Αγγελέτου\ ft.\ TUS\ -\ Έτσι\ γουστάρω\ -\ Official\ Video\ Clip\ [Wb-NX1HL9QE].webm
Νέο\ Video\ Clip\ έρχεται\ στις\ 08_11_2013\ [JcGjTbAuPc4].webm
Νέο\ Video\ Clip\ έρχεται\ στις\ 08⧸11⧸2013\ [JcGjTbAuPc4].webm
Νέος\ TUS\ έρχεται\ στις\ 20_10_2013\ [LS19odeY1Do].mkv
Νέος\ TUS\ έρχεται\ στις\ 20⧸10⧸2013\ [LS19odeY1Do].mp4
ΠΡΩΤΟΣ\ ΣΤΟ\ ΣΧΟΛΕΙΟ\ ΕΡΧΕΤΑΙ\ 11-9-2014\ [rGree3k0NJ8].webm
Σώτης\ Βολάνης\ &\ Tus\ -\ Δε\ Με\ Αγαπάει\ -\ Official\ Audio\ Release\ [epF3uIc-E0g].webm
Τus\ &\ Cenobite\ -\ an\ me\ krazeis\ piso\ apo\ to\ pc\ sou\ [NA5VhF1ilBc].webm
Τουσοντίνος\ (TusonaS)\ -\ Η\ Πιο\ Λιώμα\ Στην\ Ελλάδα\ |\ Official\ Video\ Clip\ 2015\ [XOpFJMsKuA4].mkv
Χάρης\ Ακριτίδης\ Feat\ \ TUS\ –\ Ψυχοθεραπεία\ [NhjU3ROHyCc].webm
Χάρης\ Ακριτίδης\ Feat\ TUS\ –\ Ψυχοθεραπεία\ \ -\ Official\ Video\ Clip\ [ky3QOkinD4k].webm
grep
  • 2 个回答
  • 22 Views
Martin Hope
Estatistics
Asked: 2021-07-12 08:13:51 +0800 CST

Shutter 抱怨在 @INC 中找不到 Carp/Always.pm

  • 3

我从 Ubuntu v18 完全升级到 Ubuntu v20。

快门未升级 - 它已被移除。我试图从CRAN或源代码安装。两者都抱怨旧的 Perl 库。

当我试图从源代码编译并运行它时,这是我得到的消息......我在某处读到我可以在我的系统中安装两个 Perl。但是,我不知道问题是否属于那种类型——它需要旧版本的 Perl 还是路径问题?

使用 find / search 我找不到文件“always.pm”(几分钟后,我打破了它)。

shutter

结果:

Can't locate Carp/Always.pm in @INC (you may need to install the Carp::Always module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/local/bin/shutter line 39.
BEGIN failed--compilation aborted at /usr/local/bin/shutter line 39 (#1)
    (F) You said to do (or require, or use) a file that couldn't be found.
    Perl looks for the file in all the locations mentioned in @INC, unless
    the file name included the full path to the file.  Perhaps you need
    to set the PERL5LIB or PERL5OPT environment variable to say where the
    extra library is, or maybe the script needs to add the library name
    to @INC.  Or maybe you just misspelled the name of the file.  See
    "require" in perlfunc and lib.

Uncaught exception from user code:
    Can't locate Carp/Always.pm in @INC (you may need to install the Carp::Always module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/local/bin/shutter line 39.
    BEGIN failed--compilation aborted at /usr/local/bin/shutter line 39.

通过发行

 sudo apt-get install --reinstall libcarp-always-perl

结果(甚至删除了hugin。我没有太大变化,我不希望它被删除):

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 hugin : Depends: libglew2.0 (>= 1.12.0) but it is not installable
         Depends: libomp5 (>= 0.20140926) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

通过发出:

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:
  libtiff4 libtiffxx0c2
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  hugin
0 upgraded, 0 newly installed, 1 to remove and 15 not upgraded.
1 not fully installed or removed.
After this operation, 275 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

通过发布(存储库已经存在)

sudo apt dist-upgrade

结果是:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 hugin : Depends: libglew2.0 (>= 1.12.0) but it is not installable
         Depends: libomp5 (>= 0.20140926) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

注意: Hugin 是从源代码编译的,带有我需要的手动标志。我不想从官方存储库安装它,因为它缺少这些特殊标志(使用额外的处理能力)。但是,我试图删除它,但同样没有运气。

通过运行

sudo add-apt-repository ppa:linuxuprising/shutter
sudo apt-get update
sudo apt-get install shutter

结果是:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 hugin : Depends: libglew2.0 (>= 1.12.0) but it is not installable
         Depends: libomp5 (>= 0.20140926) but it is not going to be installed
 shutter : Depends: libgtk3-imageview-perl (>= 9) but it is not going to be installed
           Depends: libgoocanvas2-perl but it is not going to be installed
           Depends: libnumber-bytes-human-perl but it is not going to be installed
           Depends: libcarp-always-perl but it is not going to be installed
           Depends: libgoocanvas2-cairotypes-perl but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

通过运行:

sudo apt-get install shutter

结果是:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 hugin : Depends: libglew2.0 (>= 1.12.0) but it is not installable
         Depends: libomp5 (>= 0.20140926) but it is not going to be installed
 shutter : Depends: libgtk3-imageview-perl (>= 9) but it is not going to be installed
           Depends: libgoocanvas2-perl but it is not going to be installed
           Depends: libnumber-bytes-human-perl but it is not going to be installed
           Depends: libcarp-always-perl but it is not going to be installed
           Depends: libgoocanvas2-cairotypes-perl but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

通过运行

 sudo apt-cache policy hugin shutter libomp5 libglew2.0 shutter libgtk3-imageview-perl libgl1

结果是:

hugin:
  Installed: 2019.3.0.8297
  Candidate: 2020.0.0-0b1~focal
  Version table:
     2020.0.0-0b1~focal 500
        500 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu focal/main amd64 Packages
 *** 2019.3.0.8297 100
        100 /var/lib/dpkg/status
     2019.2.0+dfsg-1build3 500
        500 http://ftp.ntua.gr/ubuntu focal/universe amd64 Packages
shutter:
  Installed: (none)
  Candidate: 0.97-1~0linuxuprising1~focal1
  Version table:
     0.97-1~0linuxuprising1~focal1 500
        500 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu focal/main amd64 Packages
        500 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu focal/main i386 Packages
     0.94-1 -1
        100 /var/lib/dpkg/status
libomp5:
  Installed: (none)
  Candidate: 1:10.0-50~exp1
  Version table:
     1:10.0-50~exp1 500
        500 http://ftp.ntua.gr/ubuntu focal/universe amd64 Packages
libglew2.0:
  Installed: (none)
  Candidate: (none)
  Version table:
shutter:
  Installed: (none)
  Candidate: 0.97-1~0linuxuprising1~focal1
  Version table:
     0.97-1~0linuxuprising1~focal1 500
        500 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu focal/main amd64 Packages
        500 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu focal/main i386 Packages
     0.94-1 -1
        100 /var/lib/dpkg/status
libgtk3-imageview-perl:
  Installed: (none)
  Candidate: 9-1~ppa~focal4
  Version table:
     9-1~ppa~focal4 500
        500 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu focal/main amd64 Packages
        500 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu focal/main i386 Packages
libgl1:
  Installed: 1.3.2-1~ubuntu0.20.04.1
  Candidate: 1.3.2-1~ubuntu0.20.04.1
  Version table:
 *** 1.3.2-1~ubuntu0.20.04.1 500
        500 http://ftp.ntua.gr/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.3.1-1 500
        500 http://ftp.ntua.gr/ubuntu focal/main amd64 Packages

按照 N0bert 的说明进行操作:

sudo ppa-purge ppa:ubuntuhandbook1/apps

结果是:

Updating packages lists
PPA to be removed: ubuntuhandbook1 apps
Package revert list generated:
 audacious/focal audacious-plugins:amd64/focal audacious-plugins-data/focal libaudcore5:amd64/focal libaudgui5:amd64/focal libaudqt2:amd64- libaudtag3:amd64/focal
vokoscreen-ng/focal

Disabling ubuntuhandbook1 PPA from /etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-apps-bionic.list
Disabling ubuntuhandbook1 PPA from /etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-apps-focal.list
Updating packages lists
Reading package lists... Done
Building dependency tree
Reading state information... Done
Selected version '3.10.1-1build1' (Ubuntu:20.04/focal [amd64]) for 'audacious'
Selected version '3.10.1-1build2' (Ubuntu:20.04/focal [amd64]) for 'audacious-plugins'
Selected version '3.10.1-1build2' (Ubuntu:20.04/focal [all]) for 'audacious-plugins-data'
Selected version '3.10.1-1build1' (Ubuntu:20.04/focal [amd64]) for 'libaudcore5'
Selected version '3.10.1-1build1' (Ubuntu:20.04/focal [amd64]) for 'libaudgui5'
Selected version '3.10.1-1build1' (Ubuntu:20.04/focal [amd64]) for 'libaudtag3'
Selected version '3.0.2-1' (Ubuntu:20.04/focal [amd64]) for 'vokoscreen-ng'
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 hugin : Depends: libglew2.0 (>= 1.12.0) but it is not installable
         Depends: libomp5 (>= 0.20140926) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
The following packages will be DOWNGRADED:
  audacious audacious-plugins audacious-plugins-data libaudcore5 libaudgui5 libaudtag3 vokoscreen-ng
The following packages will be REMOVED:
  libaudqt2 libtiffxx0c2{u}
The following partially installed packages will be configured:
  hugin{b}
0 packages upgraded, 0 newly installed, 7 downgraded, 2 to remove and 7 not upgraded.
Need to get 2,460 kB of archives. After unpacking 1,705 kB will be freed.
The following packages have unmet dependencies:
 hugin : Depends: libglew2.0 (>= 1.12.0) which is a virtual package and is not provided by any available package

         Depends: libomp5 (>= 0.20140926) but it is not going to be installed
The following actions will resolve these dependencies:

     Remove the following packages:
1)     hugin [2019.3.0.8297 (now)]


Accept this solution? [Y/n/q/?]

按“y”后,我可以安装快门

sudo apt-get install shutter

听从 N0bert 的指示,我也是如何保留 Hugin 的……

cd ~/Downloads
wget -c http://old-releases.ubuntu.com/ubuntu/pool/universe/t/tiff3/libtiff4_3.9.7-2ubuntu1_amd64.deb
wget -c https://mirrors.aliyun.com/oldubuntu-releases/ubuntu/pool/main/e/eglibc/multiarch-support_2.15-0ubuntu10.23_amd64.deb

sudo apt-get install -y ./libtiff4_3.9.7-2ubuntu1_amd64.deb ./multiarch-support_2.15-0ubuntu10.23_amd64.deb

wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/glew/libglew2.0_2.0.0-5_amd64.deb
sudo apt-get install -y ./libglew2.0_2.0.0-5_amd64.deb


sudo apt --fix-broken install
sudo apt autoremove --purge


cd ~/Downloads
wget -c http://old-releases.ubuntu.com/ubuntu/pool/universe/t/tiff3/libtiff4_3.9.7-2ubuntu1_amd64.deb
wget -c https://mirrors.aliyun.com/oldubuntu-releases/ubuntu/pool/main/e/eglibc/multiarch-support_2.15-0ubuntu10.23_amd64.deb

sudo apt-get install -y ./libtiff4_3.9.7-2ubuntu1_amd64.deb ./multiarch-support_2.15-0ubuntu10.23_amd64.deb

wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/glew/libglew2.0_2.0.0-5_amd64.deb
sudo apt-get install -y ./libglew2.0_2.0.0-5_amd64.deb

sudo apt-get install -y ./libtiff4_3.9.7-2ubuntu1_amd64.deb

sudo apt-get install ~/src/hugin/hugin.build/hugin-2019.3.0.8297-Linux.deb
sudo apt-get install libsz2

wget -c http://archive.ubuntu.com/ubuntu/pool/universe/h/hdf5/libhdf5-100_1.10.0-patch1+docs-4_amd64.deb
dpkg -x libhdf5-100_1.10.0-patch1+docs-4_amd64.deb /tmp/hdf
sudo cp /tmp/hdf/usr/lib/x86_64-linux-gnu/libhdf5_serial.so.100 /usr/local/lib

sudo rm /usr/lib/libhdf5_serial.so.100
sudo apt install libhdf5-103
sudo apt install libhdf5-103 --reinstall
perl
  • 2 个回答
  • 666 Views
Martin Hope
Estatistics
Asked: 2020-08-26 14:44:42 +0800 CST

安装 pspp v1.4.0 需要 gtksource 3.4.0+。我安装了它,但它没有找到它!

  • 1
  • 我试图从源代码安装 PSPP v1.4.0。
  • 但是,它要求“GtkSourceView 版本 3.4.0 或更高版本”。
  • 我安装了 GtkSourceView v4.0。
  • 它找不到它 - 报告“您必须在构建 PSPP 之前安装它们:gtksourceview 3.0 版本 3.4.2 或更高版本(或使用 --without-gui)”
  • dpkg -s libgtk-3-0|grep '^Version'说Version: 3.22.30-1ubuntu4

我现在必须做什么才能让 pspp 找到 gtk 4?我可以以某种方式在 sudo ./configure 命令中明确声明吗?

更新 - 不知道它是否有帮助......

我正在尝试安装 gtk+3.4(与 gtksource 有什么区别?)

然后发出find /usr/ -iname "*glib*.pc"

它报告说:没有 glib 3 .....

  /usr/local/lib/x86_64-linux-gnu/pkgconfig/glib-2.0.pc
    /usr/lib/x86_64-linux-gnu/pkgconfig/fso-glib-1.0.pc
    /usr/lib/x86_64-linux-gnu/pkgconfig/libpulse-mainloop-glib.pc
    /usr/lib/x86_64-linux-gnu/pkgconfig/glib-2.0.pc
    /usr/lib/pkgconfig/glib-sharp-3.0.pc
    /usr/lib/pkgconfig/glib-sharp-2.0.pc
     

注意:

elias@eliasc:$ echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/local/lib/:/usr/lib/:/usr/lib64/
elias@eliasc:$ echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig

请注意,对于 gtk+-3.4.2:

elias@eliasc:$ sudo ./configure --prefix=/usr --sysconfdir=/etc 

*** 'pkg-config --modversion glib-2.0' returned 2.64.0, but GLIB (2.56.4)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: 
*** GLIB 2.32.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.

请注意,它已成功从源代码安装 gtksourceview-4.0.0(对于 PSPP v1.4)和从源代码成功安装 glib-2.64.4(对于 gtk+-3.4.2),但它们似乎也没有被“发现”尊重需要它们的应用程序。

注意...

通过从软件和更新中选择,第一个选项卡中的源...并通过运行“sudo apt-get build-dep pspp”安装 libgtksourceview-3.0-dev...。

然后...为 pspp v1.4 运行 sudo ./configure。正在工作中。它已安装成功!

gtk
  • 1 个回答
  • 592 Views
Martin Hope
Estatistics
Asked: 2020-07-29 01:37:19 +0800 CST

终端命令以简单的方式在单个屏幕中显示使用的内存、温度和 GPU 使用的摘要

  • 1

是否有终端命令以简单的方式在单个屏幕中显示使用的内存、温度度和 GPU 使用的摘要?

我想在终端中以使用内存(而不是交换等)、GPU 使用(百分比)和温度度的摘要方式向我提供信息 - CPU 有多热?

现在,我必须使用三个不同的终端命令:

watch free -m    # For Memory use
watch sensors    # For Temperature
watch ndivia-smi # For GPU use

有没有办法在一个屏幕上显示这些信息?这些命令会产生很多人可能不需要的信息。

第一行可能显示内存使用情况。第二行可能显示 GPU 使用情况。第三行可能显示温度。

我想从free -m“可用”。例如,我想从nvidia-smi“Volatile GPU-Util”和sensors所有温度百分比中显示它们的限制(从那个到那个)

Available memory    5500000          

Volatile GPU-Util  20% 

CPUtemp1           40oC
Fantemp1           41oC
FanTemp2           42oC
etc... 

那可能吗?

示例输出:

free -m输出

$ free -m
              total        used        free      shared  buff/cache   available
Mem:           7815        1938        3548         188        2328        5391
Swap:          2047          57        1990

nvidia-smi输出

$ nvidia-smi
Fri Jul 31 18:35:45 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.138                Driver Version: 390.138                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GT 1030     Off  | 00000000:01:00.0  On |                  N/A |
| 32%   44C    P8    N/A /  30W |    220MiB /  1998MiB |      1%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
    +-----------------------------------------------------------------------------+
    | Processes:                                                       GPU Memory |
    |  GPU       PID   Type   Process name                             Usage      |
    |=============================================================================|
    |    0      1770      G   /usr/lib/xorg/Xorg                            82MiB |
    |    0      8182      G   /usr/bin/krunner                               6MiB |
    |    0      8184      G   /usr/bin/plasmashell                          55MiB |
    |    0     26370      G   ...AAAAAAAAAAAACAAAAAAAAAA= --shared-files    74MiB |
    +-----------------------------------------------------------------------------+

sensors输出

$ sensors
it8620-isa-0a30
Adapter: ISA adapter
in0:          +0.01 V  (min =  +0.00 V, max =  +3.06 V)  ALARM
in1:          +2.05 V  (min =  +0.00 V, max =  +3.06 V)
in2:          +2.00 V  (min =  +0.00 V, max =  +3.06 V)
in3:          +2.02 V  (min =  +0.00 V, max =  +3.06 V)
in4:          +0.01 V  (min =  +0.00 V, max =  +3.06 V)
in5:          +1.74 V  (min =  +0.00 V, max =  +3.06 V)
in6:          +1.50 V  (min =  +0.00 V, max =  +3.06 V)
3VSB:         +3.38 V  (min =  +0.00 V, max =  +6.12 V)
Vbat:         +3.05 V  
fan1:        2986 RPM  (min =    0 RPM)
fan2:           0 RPM  (min =    0 RPM)
fan3:           0 RPM  (min =    0 RPM)
temp1:        +47.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp2:       -128.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = disabled
temp3:        +35.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = Intel PECI
temp4:        +45.0°C  
temp5:        +42.0°C  
temp6:        +45.0°C  
intrusion0:  ALARM

acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +97.0°C)
temp2:        +29.8°C  (crit = +97.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +45.0°C  (high = +86.0°C, crit = +92.0°C)
Core 0:        +43.0°C  (high = +86.0°C, crit = +92.0°C)
Core 1:        +44.0°C  (high = +86.0°C, crit = +92.0°C)
Core 2:        +42.0°C  (high = +86.0°C, crit = +92.0°C)
Core 3:        +40.0°C  (high = +86.0°C, crit = +92.0°C)
command-line sensors temperature lm-sensors
  • 1 个回答
  • 1900 Views
Martin Hope
Estatistics
Asked: 2019-05-17 22:30:35 +0800 CST

Java 问题 - java, Jar 文件 Statmetrics 没有运行

  • 0

下载链接:https://upload.cat/f694139f88c663b1

我正在尝试在 Ubuntu 中以 jar 或类的形式运行 Java 文件。我在这两个选项中都失败了。以下例外是它的输出。

java org.statmetrics.Statmetric

或者

java -cp /home/elias/statmetrics/statmetrics.jar:。org.statmetrics.Statmetrics

或者

java -classpath "/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/*" -jar /home/elias/statmeics/statmetrics.jar org.statmetrics.Statmetrics

Exception in thread "Thread-0" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/adapters/XmlAdapter
    at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
    at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
    at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
    at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    at org.statmetrics.c.a(Unknown Source)
    at org.statmetrics.dw.a(Unknown Source)
    at org.statmetrics.dx.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.adapters.XmlAdapter
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ... 12 more

此致, 埃利亚斯·索利斯

java jar
  • 1 个回答
  • 657 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