Comments (6)
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.
from powershell.
sudo dpkg --install --ignore-depends=libicu72 powershell_7.4.2-1.deb_amd64.deb
from powershell.
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.
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.
Out of curiosity, how does deb handle the upgrade proces when a "real" new version of
libicu72
orlibicu74
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)
- Mount-DiskImage does not assign driver letter every third time HOT 2
- Does PowerShell support the real "Stream" response? HOT 5
- v7.4.2 not in Ubuntu 22.04 Linux package repository for Microsoft products HOT 3
- `Finally` block isn't executed upon Ctrl+C HOT 36
- Make `ConvertFrom-StringData` more error tolerant HOT 9
- Add-Type ReferencedAssemblies only works with full file paths now? HOT 1
- .Net 8 in PowerShell 7 System.Private.CoreLib fails to register. HOT 41
- `ConvertFrom-StringData` mistakenly emits a statement-terminating error when one of its input strings isn't well-formed HOT 2
- Redirection operator `>` should not be hardcoded to files HOT 6
- Update from System.Data.SqlClient to Microsoft.Data.SqlClient HOT 3
- .NET App using Powershell.SDK fails to run, when building as SingeFile HOT 2
- Add a command which gets the System Lockdown mode information HOT 2
- Overriding .NETs ToString() method can cause unexpected behaviour when using Transcripts HOT 1
- `Compare-Object` doesn't compare custom value types (`structs`) (that don't implement `IComparable`) correctly HOT 4
- Invoke-WebRequest needs SupportsShouldProcess
- using `Get-AppxPackage` when `SYSTEMDRIVE` env var is not set creates a (literal) `%SystemDrive%/…` directory HOT 7
- Get-Help shows incorrect spacing and unwanted prefixes for first line of .EXAMPLE text HOT 6
- Argument with colon in it is incorrectly handled if not quoted HOT 12
- Get-AuthenticodeSignature needs to use embedded signatures HOT 5
- Save-PSResource doesn't install the correct version. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powershell.