Announcement

Collapse
No announcement yet.

What do I need to change in Kubuntu to enable me to install blocked software?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What do I need to change in Kubuntu to enable me to install blocked software?


    Kubuntu is not allowing me to install software. The Terminal output for a failed PHP installation is pasted below. However, I had the same problem when trying to install Python and Pipx - which I was only trying to install in order to install konsave. Can someone please explain what is preventing me from installing software and/or what I can do about it?

    adminuser@adminuser-80tk:~$ fastfetch
    `.:/ossyyyysso/:. adminuser@adminuser-80tk
    .:oyyyyyyyyyyyyyyyyyyo:` ------------------------
    -oyyyyyyyodMMyyyyyyyysyyyyo- OS: Kubuntu x86_64
    -syyyyyyyyyydMMyoyyyydmMMyyyyys- Host: 80TK (Lenovo ideapad 510S-14ISK)
    oyyysdMysyyyydMMMMMMMMMMMMMyyyyyyyo Kernel: Linux 6.14.0-29-generic
    `oyyyydMMMMysyysoooooodMMMMyyyyyyyyyo` Uptime: 6 mins
    oyyyyyydMMMMyyyyyyyyyyyysdMMysssssyyyo Packages: 2646 (dpkg), 23 (flatpak)
    -yyyyyyyydMysyyyyyyyyyyyyyysdMMMMMysyyy- Shell: bash 5.2.37
    oyyyysoodMyyyyyyyyyyyyyyyyyyydMMMMysyyyo Display (BOE0637): 1920x1080 @ 60 Hz (as 1834x1031) in 14" [Built-in]
    yyysdMMMMMyyyyyyyyyyyyyyyyyyysosyyyyyyyy DE: KDE Plasma 6.3.4
    yyysdMMMMMyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy WM: KWin (Wayland)
    oyyyyysosdyyyyyyyyyyyyyyyyyyydMMMMysyyyo WM Theme: plastik
    -yyyyyyyydMysyyyyyyyyyyyyyysdMMMMMysyyy- Theme: Breeze (MyBreezeDarkColor) [Qt], Breeze-Dark [GTK2], Breeze [GTK3]
    oyyyyyydMMMysyyyyyyyyyyysdMMyoyyyoyyyo Icons: Win11 [Qt], Win11 [GTK2/3/4]
    `oyyyydMMMysyyyoooooodMMMMyoyyyyyyyyo Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
    oyyysyyoyyyysdMMMMMMMMMMMyyyyyyyyo Cursor: breeze (24px)
    -syyyyyyyyydMMMysyyydMMMysyyyys- Terminal: konsole 24.12.3
    -oyyyyyyydMMyyyyyyysosyyyyo- CPU: Intel(R) Core(TM) i5-6267U (4) @ 3.30 GHz
    ./oyyyyyyyyyyyyyyyyyyo/. GPU: Intel Iris Graphics 550 @ 1.05 GHz [Integrated]
    `.:/oosyyyysso/:.` Memory: 2.65 GiB / 7.61 GiB (35%)
    Swap: 0 B / 512.00 MiB (0%)
    Disk (/): 32.42 GiB / 218.71 GiB (15%) - ext4
    Local IP (wlp2s0): 192.168.0.96/24
    Battery (PABAS0241231): 100% [AC Connected]
    Locale: en_GB.UTF-8



    adminuser@adminuser-80tk:~$ sudo apt update
    [sudo] password for adminuser:
    Hit:1 [URL]http://security.ubuntu.com/ubuntu[/URL] plucky-security InRelease
    Hit:2 [URL]https://dl.winehq.org/wine-builds/ubuntu[/URL] plucky InRelease
    All packages are up-to-date.
    adminuser@adminuser-80tk:~$ sudo apt install -y software-properties-common
    software-properties-common is already the newest version (0.111).
    software-properties-common set to manually installed.
    Summary:
    Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
    adminuser@adminuser-80tk:~$ sudo add-apt-repository ppa:ondrej/php
    sudo apt update
    PPA publishes dbgsym, you may need to include 'main/debug' component
    Repository: 'Types: deb
    URIs: [URL]https://ppa.launchpadcontent.net/ondrej/php/ubuntu/[/URL]
    Suites: plucky
    Components: main
    '
    Description:
    Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Packages are provided for *Current* Ubuntu *LTS* releases ([URL]https://wiki.ubuntu.com/Releases[/URL]). Expanded Security Maintenance releases ARE NOT supported.

    Debian stable, oldstable and Debian LTS packages are provided from a separate repository: [URL]https://deb.sury.org/#debian-dpa[/URL]

    You can get more information about the packages at [URL]https://deb.sury.org[/URL]

    BUGS&FEATURES: This PPA has a issue tracker:
    [URL]https://deb.sury.org/#bug-reporting[/URL]

    Issues reported in a private email don't scale and most likely will be ignored. I simply don't have capacity to answer questions privately.

    CAVEATS:
    1. If you are using apache2, you are advised to add ppa:ondrej/apache2
    2. If you are using nginx, you are advised to add ppa:ondrej/nginx

    DONATION: If you like my work and you want to show appreciation, please consider donating regularly: [URL]https://donate.sury.org/[/URL]

    COMMERCIAL SUPPORT: Support for PHP packages for older Debian and Ubuntu release can be bought from [URL]https://www.freexian.com/lts/php/[/URL]
    More info: [URL]https://launchpad.net/~ondrej/+archive/ubuntu/php[/URL]
    Adding repository.
    Press [ENTER] to continue or Ctrl-c to cancel.
    Ign:1 [URL]https://ppa.launchpadcontent.net/ondrej/php/ubuntu[/URL] plucky InRelease
    Err:2 [URL]https://ppa.launchpadcontent.net/ondrej/php/ubuntu[/URL] plucky Release
    404 Not Found [IP: 2620:2d:4000:1::81 443]
    Hit:3 [URL]https://dl.winehq.org/wine-builds/ubuntu[/URL] plucky InRelease
    Hit:4 [URL]http://security.ubuntu.com/ubuntu[/URL] plucky-security InRelease
    Reading package lists... Done
    E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu plucky Release' does not have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    Hit:1 [URL]http://security.ubuntu.com/ubuntu[/URL] plucky-security InRelease
    Hit:2 [URL]https://dl.winehq.org/wine-builds/ubuntu[/URL] plucky InRelease
    Ign:3 [URL]https://ppa.launchpadcontent.net/ondrej/php/ubuntu[/URL] plucky InRelease
    Err:4 [URL]https://ppa.launchpadcontent.net/ondrej/php/ubuntu[/URL] plucky Release
    404 Not Found [IP: 2620:2d:4000:1::81 443]
    Error: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu plucky Release' does not have a Release file.
    Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
    Notice: See apt-secure(8) manpage for repository creation and user configuration details.
    adminuser@adminuser-80tk:~$ php -v
    Command 'php' not found, but can be installed with:
    sudo apt install php8.4-cli
    adminuser@adminuser-80tk:~$ sudo apt install php8.4-cli
    Solving dependencies... Error!
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    Unsatisfied dependencies:
    php8.4-common : Depends: php-common (>= 2:95~) but it is not installable
    php8.4-opcache : Depends: php-common (>= 2:95~) but it is not installable
    php8.4-readline : Depends: php-common (>= 2:95~) but it is not installable
    Error: Unable to correct problems, you have held broken packages.
    Error: The following information from --solver 3.0 may provide additional context:
    Unable to satisfy dependencies. Reached two conflicting decisions:
    1. php8.4-common:amd64 is selected for install because:
    1. php8.4-cli:amd64=8.4.5-1ubuntu1.1 is selected for install
    2. php8.4-cli:amd64 Depends php8.4-common (= 8.4.5-1ubuntu1.1)
    2. php8.4-common:amd64 Depends php-common (>= 2:95~)
    but none of the choices are installable:
    [no choices]
    Last edited by Snowhog; Sep 22, 2025, 08:50 AM.

    #2
    Originally posted by Knovice View Post
    Description:
    Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Packages are provided for *Current* Ubuntu *LTS* releases
    You did not specify which Kubuntu release you are using, butt:
    Originally posted by Knovice View Post
    adminuser@adminuser-80tk:~$ sudo apt update
    [sudo] password for adminuser:
    Hit:1 http://security.ubuntu.com/ubuntu plucky-security InRelease
    Hit:2 https://dl.winehq.org/wine-builds/ubuntu plucky InRelease
    All packages are up-to-date.
    Ubuntu LTS -- 24.04
    Ubuntu Plucky 25.04, not LTS

    https://ubuntu.com/about/release-cycle


    Originally posted by Knovice View Post
    E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu plucky Release' does not have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    This further shows that the PPA you added has no packages in it for 25.04.

    Also, most of your Ubuntu repos are missing:
    Code:
    sudo apt update
    [sudo] password for adminuser:
    Hit:1 [URL]http://security.ubuntu.com/ubuntu[/URL] plucky-security InRelease
    Hit:2 [URL]https://dl.winehq.org/wine-builds/ubuntu[/URL] plucky InRelease
    All packages are up-to-date.​

    It should look a bit more like this (More than two 'hits'):

    Code:
    ​$ sudo apt update
    Hit:1 http://au.archive.ubuntu.com/ubuntu plucky InRelease
    Hit:2 http://au.archive.ubuntu.com/ubuntu plucky-updates InRelease
    Hit:3 http://au.archive.ubuntu.com/ubuntu plucky-backports InRelease
    Get:4 http://au.archive.ubuntu.com/ubuntu plucky/main Translation-en_AU [1,968 B]
    Get:5 http://au.archive.ubuntu.com/ubuntu plucky/universe Translation-en_AU [1,144 B]
    Get:6 http://au.archive.ubuntu.com/ubuntu plucky/restricted Translation-en_AU [536 B]
    Get:7 http://au.archive.ubuntu.com/ubuntu plucky/multiverse Translation-en_AU [45.0 kB]
    Hit:8 http://security.ubuntu.com/ubuntu plucky-security InRelease​ <------------------------------------------THIS is the**only** stock repo  you have. No php for you! Or anything else.
    Nothing is blocked, your main software sources have been removed/disabled, plus added an unnecessary PPA that only has packages for a different release than what you are using.



    Remove that PPA using ppa-purge, or delete its file from /etc/apt/sources.list.d
    Restore the sources disabled/removed, and just install the PHP packages you need.

    php8.4-cli is already in 25.04.
    Last edited by claydoh; Sep 22, 2025, 07:51 PM.

    Comment


      #3
      You should be able to use the Software Sources tool, unless that is still broken for the purpose.
      If you have a damaged sources file or cannot undo or restore it, here is what your /etc/apt/sources.list.d/ubuntu.sources file should contain:

      Code:
      # Automatically generated by Calamares on 2025-07-31.
      # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
      # newer versions of Kubuntu.
      ## Ubuntu distribution repository
      ##
      ## The following settings can be adjusted to configure which packages to use from Ubuntu.
      ## Mirror your choices (except for URIs and Suites) in the security section below to
      ## ensure timely security updates.
      ##
      ## Types: Append deb-src to enable the fetching of source package.
      ## URIs: A URL to the repository (you may add multiple URLs)
      ## Suites: The following additional suites can be configured
      ## <name>-updates - Major bug fix updates produced after the final release of the
      ## distribution.
      ## <name>-backports - software from this repository may not have been tested as
      ## extensively as that contained in the main release, although it includes
      ## newer versions of some applications which may provide useful features.
      ## Also, please note that software in backports WILL NOT receive any review
      ## or updates from the Ubuntu security team.
      ## Components: Aside from main, the following components can be added to the list
      ## restricted - Software that may not be under a free license, or protected by patents.
      ## universe - Community maintained packages.
      ## Software from this repository is only maintained and supported by Canonical
      ## for machines with Ubuntu Pro subscriptions. Without Ubuntu Pro, the Ubuntu
      ## community provides best-effort security maintenance.
      ## multiverse - Community maintained of restricted. Software from this repository is
      ## ENTIRELY UNSUPPORTED by the Ubuntu team, and may not be under a free
      ## licence. Please satisfy yourself as to your rights to use the software.
      ## Also, please note that software in multiverse WILL NOT receive any
      ## review or updates from the Ubuntu security team.
      ##
      ## See the sources.list(5) manual page for further settings.
      Types: deb
      URIs: http://au.archive.ubuntu.com/ubuntu
      Suites: plucky plucky-updates plucky-backports
      Components: main universe restricted multiverse
      Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
      
      ## Ubuntu security updates. Aside from URIs and Suites,
      ## this should mirror your choices in the previous section.
      Types: deb
      URIs: http://security.ubuntu.com/ubuntu/
      Suites: plucky-security
      Components: main universe restricted multiverse
      Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
      Yours will have a different country code in the archive.ubuntu.com url than mine, or not have one at all, so substitute 'gb' for 'au' or just use 'archive.ubuntu.com'
      Hopefully your file just has things commented out with a '#', which makes it easy to edit using Kate or Kwrite

      Comment


        #4
        IMO if it's a borked install, it is usually far quicker wipe and start again.
        Regards, John Little

        Comment


          #5
          Yeah, but I am hoping it is just a damaged or modified source file

          Comment


            #6
            Thank you claydoh for the replies thus far.

            1. Apparently my version of fastfetch - which is not the most recent but cannot currently be updated - does not display the actual version number. The version of Kubuntu is 25.04 - which is the latest.

            2. I believe that I created the current problems when I tried to install Hypnotix - by merely pasting commands into the Terminal (in retrospect, a bad idea) - only discover that it is a Linux Mint only app (at least as far as a novice is concerned). Ever since then I have had PPA/repository issues. I cannot install anything via the Terminal and, whenever opened, the Discover software manager always displays repository errors such as:

            W: Repositories should provide a clear-signed InRelease file, but none found at https://ppa.launchpadcontent.net/ond...ucky/InRelease.
            E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu plucky Release' does not have a Release file.
            W: Updating from such a repository can't be done securely, and is therefore disabled by default.
            W: See apt-secure(8) manpage for repository creation and user configuration details.

            3. My 'sudo apt update' ouput does not look good:

            adminuser@adminuser-80tk:~$ sudo apt update
            [sudo] password for adminuser:
            Hit:1 https://dl.winehq.org/wine-builds/ubuntu plucky InRelease
            Ign:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu plucky InRelease
            Hit:3 http://security.ubuntu.com/ubuntu plucky-security InRelease
            Err:4 https://ppa.launchpadcontent.net/ondrej/php/ubuntu plucky Release
            404 Not Found [IP: 2620:2d:4000:1::81 443]
            Hit:5 https://repo.protonvpn.com/debian stable InRelease
            Error: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu plucky Release' does not have a Release file.
            Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
            Notice: See apt-secure(8) manpage for repository creation and user configuration details.
            adminuser@adminuser-80tk:~$

            4. With regard to ppa-purge - I do not think I was given the correct format:

            adminuser@adminuser-80tk:~$ ppa-purge
            Warning: Required ppa-name argument was not specified
            Usage: sudo ppa-purge [options] <ppapaowner>[/ppaname]

            ppa-purge will reset all packages from a PPA to the standard
            versions released for your distribution.

            Options:
            -p [ppaname] PPA name to be disabled (default: ppa)
            -o [ppaowner] PPA owner
            -s [host] Repository server (default: ppa.launchpadcontent.net)
            -d [distribution] Override the default distribution choice.
            -y Pass -y --force-yes to apt-get or -y to aptitude
            -i Reverse preference of apt-get upon aptitude.
            -h Display this help text

            Example usage commands:
            sudo ppa-purge -o xorg-edgers
            will remove https://launchpad.net/~xorg-edgers/+archive/ppa

            sudo ppa-purge -o sarvatt -p xorg-testing
            will remove https://launchpad.net/~sarvatt/+archive/xorg-testing

            sudo ppa-purge [ppa:]ubuntu-x-swat/x-updates
            will remove https://launchpad.net/~ubuntu-x-swat/+archive/x-updates

            Notice: If ppa-purge fails for some reason and you wish to try again,
            (For example: you left synaptic open while attempting to run it) remove
            the line "Enabled: no" from the Components section in the PPA ".sources"
            file or uncomment the PPA from its ".list" file, run apt-get update and
            try again.

            adminuser@adminuser-80tk:~$ sudo ppa-purge
            [sudo] password for adminuser:
            Warning: Required ppa-name argument was not specified
            Usage: sudo ppa-purge [options] <ppapaowner>[/ppaname]

            ppa-purge will reset all packages from a PPA to the standard
            versions released for your distribution.

            Options:
            -p [ppaname] PPA name to be disabled (default: ppa)
            -o [ppaowner] PPA owner
            -s [host] Repository server (default: ppa.launchpadcontent.net)
            -d [distribution] Override the default distribution choice.
            -y Pass -y --force-yes to apt-get or -y to aptitude
            -i Reverse preference of apt-get upon aptitude.
            -h Display this help text

            Example usage commands:
            sudo ppa-purge -o xorg-edgers
            will remove https://launchpad.net/~xorg-edgers/+archive/ppa

            sudo ppa-purge -o sarvatt -p xorg-testing
            will remove https://launchpad.net/~sarvatt/+archive/xorg-testing

            sudo ppa-purge [ppa:]ubuntu-x-swat/x-updates
            will remove https://launchpad.net/~ubuntu-x-swat/+archive/x-updates

            Notice: If ppa-purge fails for some reason and you wish to try again,
            (For example: you left synaptic open while attempting to run it) remove
            the line "Enabled: no" from the Components section in the PPA ".sources"
            file or uncomment the PPA from its ".list" file, run apt-get update and
            try again.

            adminuser@adminuser-80tk:~$

            5. Even if there is a way to get ppa-purge to work, I would not know how to restore the ppa. So please give me the the restore command as well.

            Comment


              #7
              Use ppa-purge the same way you used add-apt-repository to get the ppa.
              So:

              Code:
              sudo ppa-purge ppa:ondrej/php
              Next, paste the contents of the file /etc/apt/sources.list.d/ubuntu.sources.

              You can browse to it in Dolphin and just double-click the file.
              We want to compare it to the one I posted, and we can tell you what needs to be edited or added to fix it.

              I believe that this will be a fairly easy fix, all done using Kate or Kwrite. No command line, and only needing a password when saving the file.


              Originally posted by Knovice View Post
              2. I believe that I created the current problems when I tried to install Hypnotix - by merely pasting commands into the Terminal (in retrospect, a bad idea) - only discover that it is a Linux Mint only app (at least as far as a novice is concerned). Ever since then I have had PPA/repository issues
              Yes, investigating what the commands do, and where the software is coming from are all good ideas.

              Linux Mint apps can be installed on Ubuntu -- Mint *is* about 97% Ubuntu under the GUI. But any PPA I have seen for them seem to only support Ubuntu LTS -- as Mint is based on that.

              Keep it simple for now, install apps from Discover. Linux packaging is confusing, and maybe even messy when straying from the official sources and app stores.

              You can always seek opinions if you find something you want but aren't sure about.




              Comment


                #8
                Thanks again claydoh for your reply. Below is the output from the purge and the cat:

                adminuser@adminuser-80tk:~$ sudo ppa-purge ppandrej/php
                [sudo] password for adminuser:
                Updating packages lists
                E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu plucky Release' does not have a Release file.
                Warning: apt-get update failed for some reason


                adminuser@adminuser-80tk:~$ cat /etc/apt/sources.list.d/ubuntu.sources
                # Automatically generated by Calamares on 2025-06-17.
                # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
                # newer versions of Kubuntu.
                ## Ubuntu distribution repository
                ##
                ## The following settings can be adjusted to configure which packages to use from Ubuntu.
                ## Mirror your choices (except for URIs and Suites) in the security section below to
                ## ensure timely security updates.
                ##
                ## Types: Append deb-src to enable the fetching of source package.
                ## URIs: A URL to the repository (you may add multiple URLs)
                ## Suites: The following additional suites can be configured
                ## <name>-updates - Major bug fix updates produced after the final release of the
                ## distribution.
                ## <name>-backports - software from this repository may not have been tested as
                ## extensively as that contained in the main release, although it includes
                ## newer versions of some applications which may provide useful features.
                ## Also, please note that software in backports WILL NOT receive any review
                ## or updates from the Ubuntu security team.
                ## Components: Aside from main, the following components can be added to the list
                ## restricted - Software that may not be under a free license, or protected by patents.
                ## universe - Community maintained packages.
                ## Software from this repository is only maintained and supported by Canonical
                ## for machines with Ubuntu Pro subscriptions. Without Ubuntu Pro, the Ubuntu
                ## community provides best-effort security maintenance.
                ## multiverse - Community maintained of restricted. Software from this repository is
                ## ENTIRELY UNSUPPORTED by the Ubuntu team, and may not be under a free
                ## licence. Please satisfy yourself as to your rights to use the software.
                ## Also, please note that software in multiverse WILL NOT receive any
                ## review or updates from the Ubuntu security team.
                ##
                ## See the sources.list(5) manual page for further settings.
                Types: deb
                URIs: http://gb.archive.ubuntu.com/ubuntu/
                Suites: plucky plucky-updates plucky-backports
                Components: main restricted universe multiverse
                Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
                Enabled: no

                ## Ubuntu security updates. Aside from URIs and Suites,
                ## this should mirror your choices in the previous section.
                Types: deb
                URIs: http://security.ubuntu.com/ubuntu/
                Suites: plucky-security
                Components: main restricted universe multiverse
                Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
                adminuser@adminuser-80tk:~$

                Comment


                  #9
                  Ok, ppa-purge won't work on a PPA that doesn't have any packages, lol, I forgot that.
                  Sorry!

                  You will need to just manually delete the file /etc/apt/sources.list.d/ondrej-ubuntu-php-plucky.sources, or whatever file has 'ondrej' in the name.
                  This will require sudo on the command line, or Admin mode if you have that -- right click somewhere in your Dolphin window and look for 'Open as Administrator' or similar option. Be careful here, and close that window when you have deleted the file.

                  Next, edit the ubuntu.sources file and remove the line Enabled: no
                  Save, and try running apt update again.


                  You *should* be back to normal now.

                  Comment

                  Users Viewing This Topic

                  Collapse

                  There are 0 users viewing this topic.

                  Working...
                  X