首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >快门抱怨说在@INC中找不到Carp/Always.pm

快门抱怨说在@INC中找不到Carp/Always.pm
EN

Ask Ubuntu用户
提问于 2021-07-11 16:13:51
回答 2查看 939关注 0票数 3

我完成了从Ubuntu v18到Ubuntu v20的全面升级。

快门没有升级-它被移除了。我试图从克拉恩或源安装。两人都抱怨旧的Perl库。

当我试图从源代码编译并运行它时,这是我得到的信息.我在某个地方读到可以在我的系统中安装两个Perl。但是,我不知道这个问题是否是这样的--它需要一个旧版本的Perl,还是路径问题?

使用find / search,我无法找到文件"always.pm“(几分钟后,我就会破坏它)。

代码语言:javascript
复制
shutter

结果:

代码语言:javascript
复制
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.

通过发行

代码语言:javascript
复制
 sudo apt-get install --reinstall libcarp-always-perl

结果(连hugin也被移除。我并没有改变太多,我也不希望它被删除):

代码语言:javascript
复制
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).

发出:

代码语言:javascript
复制
sudo apt --fix-broken install

结果:

代码语言:javascript
复制
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.

通过发出(存储库已经在那里)

代码语言:javascript
复制
sudo apt dist-upgrade

其结果是:

代码语言:javascript
复制
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是用我需要的手动标志从源代码编译的。我不想从官方存储库安装它,因为它缺少这些特殊标志(使用额外的处理能力)。然而,我试图移除它,但再次,没有运气。

通过跑

代码语言:javascript
复制
sudo add-apt-repository ppa:linuxuprising/shutter
sudo apt-get update
sudo apt-get install shutter

其结果是:

代码语言:javascript
复制
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).

通过跑步:

代码语言:javascript
复制
sudo apt-get install shutter

其结果是:

代码语言:javascript
复制
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).

通过跑

代码语言:javascript
复制
 sudo apt-cache policy hugin shutter libomp5 libglew2.0 shutter libgtk3-imageview-perl libgl1

其结果是:

代码语言:javascript
复制
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的指示:

代码语言:javascript
复制
sudo ppa-purge ppa:ubuntuhandbook1/apps

其结果是:

代码语言:javascript
复制
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“键后,我就可以用

代码语言:javascript
复制
sudo apt-get install shutter

根据N0bert的指示,我也是如何保持Hugin的.

代码语言:javascript
复制
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
EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2021-07-11 16:32:19

您必须首先通过以下方法清理存储库并修复依赖关系:

代码语言:javascript
复制
sudo add-apt-repository -r ppa:hugin/hugin-builds
sudo apt-get install ppa-purge
sudo ppa-purge ppa:ubuntuhandbook1/apps

sudo apt --fix-broken install
sudo aptitude dist-upgrade

然后从特殊PPA安装快门:

代码语言:javascript
复制
sudo add-apt-repository ppa:linuxuprising/shutter
sudo apt-get update
sudo apt-get install shutter
票数 3
EN

Ask Ubuntu用户

发布于 2022-04-11 17:24:56

不确定它是否有用,但我从git和Ubuntu20.04克隆的Shutter也有同样的问题,这是我如何让它工作的原因:

代码语言:javascript
复制
sudo apt install libcarp-always-perl libnumber-bytes-human-perl libpango-perl libgtk3-perl libfile-copy-recursive-perl libxml-simple-perl libproc-simple-perl libsort-naturally-perl libimage-exiftool-perl libmoo-perl libgoocanvas2-perl  libproc-processtable-perl

上面的依赖项是运行Shutter 0.99.2 Rev.1593本身所必需的。编译模块所需的这些依赖项不存在于焦点回购中:

代码语言:javascript
复制
sudo apt install libimage-magick-perl libgoocanvas-2.0-dev

用cpan编译模块:

代码语言:javascript
复制
cpan install Gtk3::ImageView
cpan install GooCanvas2::CairoTypes

这些都是插件所需要的:

代码语言:javascript
复制
sudo apt install libwww-mechanize-perl libjson-maybexs-perl libnet-oauth-perl  libpath-class-perl 

在我安装以上所有内容之后,最新的Shutter成功地运行在我的Ubuntu20.04个人电脑上。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1351293

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档