Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 900  / 1 Year ago, sun, december 18, 2022, 5:34:12

I am trying to install package qelectrotech on ubuntu 18.04.

After installing I got (old) version 0.5-2. So I added a PPA (sudo add-apt-repository ppa:scorpio/qelectrotech-dev) source to get the newer version. But they don't work automatically. Now I need to manually force "downgrade" and look for the version to get a new version of 0.90.

After checking, I realised that my ubuntu system added some version info before the actual version!

I see old (original 0.5-2 ) the old version 1:0.5-2 and the version in PPA (new 0.90.r7446) as 0.90.r7446.


As 0.90.r7664 seems older than 1:0.5-2, I always get the old version installed instead of the new. So how to get rid of that 1:, as this is not the part of the original version?


Thank you


More From » apt

 Answers
4

The bad moment here is that you do not want to read QElectroTech-dev
PPA description
on its page.

The developer clearly states:



QElectroTech Ubuntu Repository for 0.9 devel version.


Ubuntu pinning

The following entry assigns a high priority to all
versions of the QElectroTech package beginning with 0.80. :

This way,
your system will download the higher package version from the ppa and
not those from the official Ubuntu repositories.


Create manually the file 40qelectrotech-devel in
/etc/apt/preferences.d/ and add these 3 lines:


Package: qelectrotech*

Pin: version 0.90.*

Pin-Priority: 1001


https://qelectrotech.org/wiki_new/start?id=en/doc/install_ubuntu


apt-get install qelectrotech qelectrotech-data qelectrotech-examples
qet-tb-generator



So you need to really create such file with relevant version by using command below:


cat <<EOF | sudo tee /etc/apt/preferences.d/40qelectrotech-devel
Package: qelectrotech*
Pin: version 0.90.*
Pin-Priority: 1001
EOF

and then install these 0.90 versioned packages by:


sudo apt-get install qelectrotech qelectrotech-data qelectrotech-examples

[#997] Monday, December 19, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nuehan

Total Points: 253
Total Questions: 109
Total Answers: 120

Location: Singapore
Member since Sat, Jul 25, 2020
4 Years ago
nuehan questions
Mon, Mar 28, 22, 00:10, 2 Years ago
Fri, Jun 24, 22, 11:39, 2 Years ago
Thu, Apr 28, 22, 20:54, 2 Years ago
Fri, Aug 20, 21, 01:06, 3 Years ago
Fri, Dec 9, 22, 15:02, 1 Year ago
;