Git Product home page Git Product logo

Comments (6)

TK1987 avatar TK1987 commented on June 3, 2024 3
sudo dpkg --install --ignore-depends=libicu72 powershell_7.4.2-1.deb_amd64.deb

Doesn't this lead to problems because the dependent package is missing?

Perhaps a better option would be to create a dummy package that uses the newer version instead...

thomas@mate:~$ sudo apt install -y equivs
thomas@mate:~$ equivs-control libicu72
thomas@mate:~$ nano libicu72
Section: misc
Priority: optional
Package: libicu72
Provides: libicu74
Architecture: all
Description: Dummy package for PowerShell
thomas@mate:~$ equivs-build libicu72
dpkg-buildpackage: info: source package libicu72
dpkg-buildpackage: info: source version 1.0
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <thomas@mate>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
 debian/rules clean
dh clean
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   create-stamp debian/debhelper-build-stamp
   dh_prep
   dh_auto_install --destdir=debian/libicu72/
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_perl
   dh_link
   dh_strip_nondeterminism
   dh_compress
   dh_fixperms
   dh_missing
   dh_installdeb
   dh_gencontrol
   dh_md5sums
   dh_builddeb
dpkg-deb: building package 'libicu72' in '../libicu72_1.0_all.deb'.
 dpkg-genbuildinfo --build=binary -O../libicu72_1.0_amd64.buildinfo
 dpkg-genchanges --build=binary -O../libicu72_1.0_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)

The package has been created.
Attention, the package has been created in the current directory,
not in ".." as indicated by the message above!

thomas@mate:~$ sudo dpkg -i libicu72_1.0_all.deb
(Reading database ... 276606 files and directories currently installed.)
Preparing to unpack libicu72_1.0_all.deb ...
Unpacking libicu72 (1.0) over (1.0) ...
Setting up libicu72 (1.0) ...

thomas@mate:~$ sudo apt install -y /tmp/powershell-lts_7.4.2-1.deb_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'powershell-lts' instead of '/tmp/powershell-lts_7.4.2-1.deb_amd64.deb'
The following NEW packages will be installed:
  powershell-lts
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/71,1 MB of archives.
After this operation, 181 MB of additional disk space will be used.
Get:1 /tmp/powershell-lts_7.4.2-1.deb_amd64.deb powershell-lts amd64 7.4.2-1.deb [71,1 MB]
Selecting previously unselected package powershell-lts.
(Reading database ... 275936 files and directories currently installed.)
Preparing to unpack .../powershell-lts_7.4.2-1.deb_amd64.deb ...
Unpacking powershell-lts (7.4.2-1.deb) ...
Setting up powershell-lts (7.4.2-1.deb) ...
Processing triggers for man-db (2.12.0-4build2) ...

thomas@mate:~$ pwsh
PowerShell 7.4.2
PS /home/thomas> 

from powershell.

rhubarb-geek-nz avatar rhubarb-geek-nz commented on June 3, 2024 1

#21548
#21385

from powershell.

briped avatar briped commented on June 3, 2024
sudo dpkg --install --ignore-depends=libicu72 powershell_7.4.2-1.deb_amd64.deb

from powershell.

msJinLei avatar msJinLei commented on June 3, 2024
sudo apt-get install -f

Thanks, but doesn't work

Friday@BlackFriday:~$ sudo dpkg --install --ignore-depends=libicu72 powershell_7.4.2-1.deb_amd64.deb
(Reading database ... 69318 files and directories currently installed.)
Preparing to unpack powershell_7.4.2-1.deb_amd64.deb ...
Unpacking powershell (7.4.2-1.deb) over (7.4.2-1.deb) ...
Setting up powershell (7.4.2-1.deb) ...
Processing triggers for man-db (2.12.0-4build2) ...

from powershell.

briped avatar briped commented on June 3, 2024

Doesn't this lead to problems because the dependent package is missing?

Perhaps a better option would be to create a dummy package that uses the newer version instead...

You're right. At least further use of apt wouldn't really work until I did the cleaning up it told me to do, which uninstalled powershell again (forgot the command).

I don't really know that much about apt/dpkg, so I just perused man dpkg for a way to in some way ignore / override the dependency, and it worked; PowerShell was installed. Although the succes was short-lived, as apt just complained afterwards.

Out of curiosity, how does deb handle the upgrade proces when a "real" new version of libicu72 or libicu74 is available?

And thank you for your solution/workaround :)

from powershell.

TK1987 avatar TK1987 commented on June 3, 2024

Out of curiosity, how does deb handle the upgrade proces when a "real" new version of libicu72 or libicu74 is available?

libicu74 is already a real version currently used by Noble Numbat. The dummy package libicu72 only redirects everything to this package.

As soon as Powershell is officially released for Noble, it will also use version >=74. The dummy package will then be obsolete. However, it will remain in the system until it is manually uninstalled.

from powershell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.