weixin_39787628
weixin_39787628
2020-12-01 16:43

Problem with ros_qtc_plugin installation - Ubuntu 16.04.3

Hey there,

I am having troubles installing QtCreator on Ubuntu 16.04 following the wiki here.

Here is what I am seeing:


marco:~$ sudo add-apt-repository ppa:levi-armstrong/qt-libraries-xenial
[sudo] password for marco: 

 More info: https://launchpad.net/~levi-armstrong/+archive/ubuntu/qt-libraries-xenial
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmplcgenpzy/secring.gpg' created
gpg: keyring `/tmp/tmplcgenpzy/pubring.gpg' created
gpg: requesting key 8A981288 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmplcgenpzy/trustdb.gpg: trustdb created
gpg: key 8A981288: public key "Launchpad PPA for Levi Armstrong" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK


marco:~$ sudo add-apt-repository ppa:levi-armstrong/ppa

 This contains all packages related to ROS Qt Creator Plugin's.
 More info: https://launchpad.net/~levi-armstrong/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpoan8bjmq/secring.gpg' created
gpg: keyring `/tmp/tmpoan8bjmq/pubring.gpg' created
gpg: requesting key 8A981288 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpoan8bjmq/trustdb.gpg: trustdb created
gpg: key 8A981288: public key "Launchpad PPA for Levi Armstrong" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK


marco:~$ sudo apt update && sudo apt install qt59creator
Hit:1 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu xenial InRelease
Ign:2 http://linux.dropbox.com/ubuntu wily InRelease                                                                                                             
Hit:3 http://repository.spotify.com stable InRelease                                                                                                             
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease                                                                          
Hit:5 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease                                          
Hit:6 http://it.archive.ubuntu.com/ubuntu xenial InRelease                                     
Hit:7 http://it.archive.ubuntu.com/ubuntu xenial-updates InRelease                                  
Hit:8 http://it.archive.ubuntu.com/ubuntu xenial-backports InRelease                                
Get:9 http://linux.dropbox.com/ubuntu wily Release [6.596 B]                                   
Get:10 http://ppa.launchpad.net/levi-armstrong/ppa/ubuntu xenial InRelease [18,0 kB]                     
Hit:11 http://packages.ros.org/ros/ubuntu xenial InRelease                           
Get:12 http://ppa.launchpad.net/levi-armstrong/qt-libraries-xenial/ubuntu xenial InRelease [18,1 kB]
Hit:13 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial InRelease
Hit:15 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial InRelease
Get:16 http://ppa.launchpad.net/levi-armstrong/ppa/ubuntu xenial/main amd64 Packages [1.604 B]
Hit:17 https://download.sublimetext.com apt/stable/ InRelease                                          
Get:18 http://ppa.launchpad.net/levi-armstrong/ppa/ubuntu xenial/main i386 Packages [1.600 B]
Get:19 http://ppa.launchpad.net/levi-armstrong/ppa/ubuntu xenial/main Translation-en [680 B]           
Get:20 http://ppa.launchpad.net/levi-armstrong/qt-libraries-xenial/ubuntu xenial/main amd64 Packages [18,1 kB]
Get:21 http://ppa.launchpad.net/levi-armstrong/qt-libraries-xenial/ubuntu xenial/main i386 Packages [12,5 kB]
Get:22 http://ppa.launchpad.net/levi-armstrong/qt-libraries-xenial/ubuntu xenial/main Translation-en [4.992 B]
Fetched 82,2 kB in 1s (66,1 kB/s)                   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libclang1-3.9 libllvm3.9 linux-headers-4.10.0-35 linux-headers-4.10.0-35-generic linux-image-4.10.0-35-generic linux-image-extra-4.10.0-35-generic linux-signed-image-4.10.0-35-generic qtermwidget57-data snap-confine
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  qt59base qt59creator-doc qt59declarative qt59location qt59qbs qt59quickcontrols qt59script qt59tools qt59webchannel qt59webengine qt59xmlpatterns
Suggested packages:
  kdelibs5-data
The following NEW packages will be installed:
  qt59base qt59creator qt59creator-doc qt59declarative qt59location qt59qbs qt59quickcontrols qt59script qt59tools qt59webchannel qt59webengine qt59xmlpatterns
0 upgraded, 12 newly installed, 0 to remove and 16 not upgraded.
Need to get 84,1 MB/124 MB of archives.
After this operation, 484 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://ppa.launchpad.net/levi-armstrong/qt-libraries-xenial/ubuntu xenial/main amd64 qt59webengine amd64 5.9.1-1basyskom2 [37,9 MB]
Get:2 http://ppa.launchpad.net/levi-armstrong/qt-libraries-xenial/ubuntu xenial/main amd64 qt59quickcontrols amd64 5.9.1-1basyskom1 [5.179 kB]                                                                                        
Get:3 http://ppa.launchpad.net/levi-armstrong/qt-libraries-xenial/ubuntu xenial/main amd64 qt59creator amd64 4.4.1-1xenial6 [34,6 MB]                                                                                                 
Get:4 http://ppa.launchpad.net/levi-armstrong/qt-libraries-xenial/ubuntu xenial/main amd64 qt59creator-doc all 4.4.1-1xenial6 [6.537 kB]                                                                                              
Fetched 84,1 MB in 38s (2.207 kB/s)                                                                                                                                                                                                   
Selecting previously unselected package qt59base.
(Reading database ... 515524 files and directories currently installed.)
Preparing to unpack .../qt59base_5.9.1-1basyskom1_amd64.deb ...
Unpacking qt59base (5.9.1-1basyskom1) ...
Selecting previously unselected package qt59xmlpatterns.
Preparing to unpack .../qt59xmlpatterns_5.9.1-1basyskom1_amd64.deb ...
Unpacking qt59xmlpatterns (5.9.1-1basyskom1) ...
Selecting previously unselected package qt59declarative.
Preparing to unpack .../qt59declarative_5.9.1-1basyskom1_amd64.deb ...
Unpacking qt59declarative (5.9.1-1basyskom1) ...
Selecting previously unselected package qt59script.
Preparing to unpack .../qt59script_5.9.1-1basyskom1_amd64.deb ...
Unpacking qt59script (5.9.1-1basyskom1) ...
Selecting previously unselected package qt59qbs.
Preparing to unpack .../qt59qbs_1.9.0-1basyskom2_amd64.deb ...
Unpacking qt59qbs (1.9.0-1basyskom2) ...
Selecting previously unselected package qt59tools.
Preparing to unpack .../qt59tools_5.9.1-1basyskom1_amd64.deb ...
Unpacking qt59tools (5.9.1-1basyskom1) ...
Selecting previously unselected package qt59location.
Preparing to unpack .../qt59location_5.9.1-1basyskom1_amd64.deb ...
Unpacking qt59location (5.9.1-1basyskom1) ...
Selecting previously unselected package qt59webchannel.
Preparing to unpack .../qt59webchannel_5.9.1-1basyskom1_amd64.deb ...
Unpacking qt59webchannel (5.9.1-1basyskom1) ...
Selecting previously unselected package qt59webengine.
Preparing to unpack .../qt59webengine_5.9.1-1basyskom2_amd64.deb ...
Unpacking qt59webengine (5.9.1-1basyskom2) ...
Selecting previously unselected package qt59quickcontrols.
Preparing to unpack .../qt59quickcontrols_5.9.1-1basyskom1_amd64.deb ...
Unpacking qt59quickcontrols (5.9.1-1basyskom1) ...
Selecting previously unselected package qt59creator.
Preparing to unpack .../qt59creator_4.4.1-1xenial6_amd64.deb ...
Unpacking qt59creator (4.4.1-1xenial6) ...
Selecting previously unselected package qt59creator-doc.
Preparing to unpack .../qt59creator-doc_4.4.1-1xenial6_all.deb ...
Unpacking qt59creator-doc (4.4.1-1xenial6) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Setting up qt59base (5.9.1-1basyskom1) ...
Setting up qt59xmlpatterns (5.9.1-1basyskom1) ...
Setting up qt59declarative (5.9.1-1basyskom1) ...
Setting up qt59script (5.9.1-1basyskom1) ...
Setting up qt59qbs (1.9.0-1basyskom2) ...
Setting up qt59tools (5.9.1-1basyskom1) ...
Setting up qt59location (5.9.1-1basyskom1) ...
Setting up qt59webchannel (5.9.1-1basyskom1) ...
Setting up qt59webengine (5.9.1-1basyskom2) ...
Setting up qt59quickcontrols (5.9.1-1basyskom1) ...
Setting up qt59creator (4.4.1-1xenial6) ...
Setting up qt59creator-doc (4.4.1-1xenial6) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...


marco:~$ sudo apt install qt57creator-plugin-ros
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libclang1-3.9 libllvm3.9 linux-headers-4.10.0-35 linux-headers-4.10.0-35-generic linux-image-4.10.0-35-generic linux-image-extra-4.10.0-35-generic linux-signed-image-4.10.0-35-generic qtermwidget57-data snap-confine
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libqtermwidget59-0 qtermwidget59-data
The following NEW packages will be installed:
  libqtermwidget59-0 qt57creator-plugin-ros qtermwidget59-data
0 upgraded, 3 newly installed, 0 to remove and 16 not upgraded.
Need to get 0 B/492 kB of archives.
After this operation, 1.684 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 533456 files and directories currently installed.)
Preparing to unpack .../qtermwidget59-data_0.6.1-0xenial1_all.deb ...
Unpacking qtermwidget59-data (0.6.1-0xenial1) ...
dpkg: error processing archive /var/cache/apt/archives/qtermwidget59-data_0.6.1-0xenial1_all.deb (--unpack):
 trying to overwrite '/usr/share/qtermwidget5/color-schemes/Linux.colorscheme', which is also in package qtermwidget57-data 0.6.0-0xenial1
Selecting previously unselected package libqtermwidget59-0.
Preparing to unpack .../libqtermwidget59-0_0.6.1-0xenial1_amd64.deb ...
Unpacking libqtermwidget59-0 (0.6.1-0xenial1) ...
Selecting previously unselected package qt57creator-plugin-ros.
Preparing to unpack .../qt57creator-plugin-ros_0.1.8-0xenial3_amd64.deb ...
Unpacking qt57creator-plugin-ros (0.1.8-0xenial3) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
 /var/cache/apt/archives/qtermwidget59-data_0.6.1-0xenial1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I also tried apt-get install -f which does not seem to solve the issue:


marco:~$ sudo apt-get install -f
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:
  libclang1-3.9 libllvm3.9 linux-headers-4.10.0-35 linux-headers-4.10.0-35-generic linux-image-4.10.0-35-generic linux-image-extra-4.10.0-35-generic linux-signed-image-4.10.0-35-generic qtermwidget57-data snap-confine
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  qtermwidget59-data
The following NEW packages will be installed:
  qtermwidget59-data
0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.
2 not fully installed or removed.
Need to get 0 B/8.624 B of archives.
After this operation, 86,0 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 533518 files and directories currently installed.)
Preparing to unpack .../qtermwidget59-data_0.6.1-0xenial1_all.deb ...
Unpacking qtermwidget59-data (0.6.1-0xenial1) ...
dpkg: error processing archive /var/cache/apt/archives/qtermwidget59-data_0.6.1-0xenial1_all.deb (--unpack):
 trying to overwrite '/usr/share/qtermwidget5/color-schemes/Linux.colorscheme', which is also in package qtermwidget57-data 0.6.0-0xenial1
Errors were encountered while processing:
 /var/cache/apt/archives/qtermwidget59-data_0.6.1-0xenial1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Am I doing something wrong?

该提问来源于开源项目:ros-industrial/ros_qtc_plugin

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

5条回答

  • weixin_39996035 weixin_39996035 5月前

    Try the commands below. I

    
    sudo apt-get remove --purge '^qt57.*'
    sudo apt-get install qt57creator-plugin-ros
    
    点赞 评论 复制链接分享
  • weixin_39996035 weixin_39996035 5月前

    I found the issue in the Debian, the conflict for qtermwidget57-data was misspelled. I just pushed new version of them and they should be published in about 30 minutes but the command above should solve the issue.

    点赞 评论 复制链接分享
  • weixin_39996035 weixin_39996035 5月前

    Ok there are published so you can perform an update and try to reinstall.

    点赞 评论 复制链接分享
  • weixin_39787628 weixin_39787628 5月前

    Thanks for your help, it works!

    This is what I've done: 1) From Synaptic Complete Removal of libqtermwidget59-0 (it was broken and apt-get install -f didn't help) 2) sudo apt-get remove --purge '^qt57.*' 3) sudo apt-get remove --purge '^qt59.*' 4) re-installed following the wiki

    点赞 评论 复制链接分享
  • weixin_39996035 weixin_39996035 5月前

    Great! Hopefully with the fix to the Debian it will not be an issue for other developers.

    点赞 评论 复制链接分享

相关推荐