python2-taskcoach 和 Ubuntu 20.04.1 LTS

python2-taskcoach 和 Ubuntu 20.04.1 LTS

我正在尝试在 Ubuntu 20.04 上安装 taskcoach。它需要 python2 和一些其他 python2 依赖项。

我已尝试遵循此链接中提供的建议: https://answers.launchpad.net/taskcoach/+question/690591

但没有成功。

这些是我尝试过的步骤:

#install python 2
sudo apt install python2
#install pip (2)  https://linuxize.com/post/how-to-install-pip-on-ubuntu-20.04/
sudo add-apt-repository universe
sudo apt update 
sudo apt install python2
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
sudo python2 get-pip.py
pip2 --version

#install dependencies 
sudo pip2 install twisted
sudo pip2 install notify
#Download taskcoach_1.4.6-1.deb 

#editing /var/lib/dpkg/status and deleting those two dependencies from the Taskcoach package
kate /var/lib/dpkg/status
#original line is: Depends: python (>= 2.6), python-wxgtk3.0 (>= 3.0.0.0), python-wxversion, python-twisted (>= 10.0), libxss1, ttf-dejavu, xdg-utils, python-igraph
new line I put is: Depends: python (>= 2.6), libxss1, ttf-dejavu, xdg-utils
sudo dpkg --force-all -i taskcoach_1.4.6-1.deb

我仍然收到以下错误:

sudo dpkg --force-all -i taskcoach_1.4.6-1.deb
    (Reading database ... 283484 files and directories currently installed.)
    Preparing to unpack taskcoach_1.4.6-1.deb ...
    Unpacking taskcoach (1.4.6-1) over (1.4.6-1) ...
    dpkg: taskcoach: dependency problems, but configuring anyway as you requested:
    taskcoach depends on python-wxgtk3.0 (>= 3.0.0.0); however:
    Package python-wxgtk3.0 is not installed.
    taskcoach depends on python-wxversion; however:
    Package python-wxversion is not installed.
    taskcoach depends on python-twisted (>= 10.0); however:
    Package python-twisted is not installed.
    taskcoach depends on python-igraph; however:
    Package python-igraph is not installed.

    Setting up taskcoach (1.4.6-1) ...
    Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
    Processing triggers for mime-support (3.64ubuntu1) ...

基本上,当我尝试安装该软件包时,/var/lib/dpkg/status 会由于某种原因使用旧的依赖项重新创建。

有什么提示吗?

答案1

它清楚地表明它依赖于那些包,那么你为什么要更改状态文件? 应该添加依赖包来解决这个问题。

相关内容