New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Install PowerShell 7.4 with Ubuntu 24.04 #23197
Comments
|
Thanks, but doesn't work
|
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
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> |
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 Out of curiosity, how does deb handle the upgrade proces when a "real" new version of And thank you for your solution/workaround :) |
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. |
Prerequisites
Steps to reproduce
Installation via Package Repository the Package Repository
Installation via direct download
Expected behavior
Install PowerShell correctly
Actual behavior
Cannot install PowerShell 7.4
Error details
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: