apt-get dist-upgrade wants to remove kde desktop [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have installed Debian Testing on my laptop. Usually I upgrade my system with the following commands: First sudo apt-get update and second sudo apt-get dist-upgrade. Usually this works perfectly, but yesterday, when I wanted to invoke the dist-upgrade command, apt stated that this command would remove the following packages
kde-config-touchpad kde-plasma-desktop kde-standard kio-extras libgl2ps0
plasma-desktop
The problem is that removing the kde-plasma-desktop would uninstall my whole desktop environment. Now the questions arises, why apt wants to do this. I've already heard that one has to be careful with apt-get dist-upgrade but I'm still surprised. What is the reason that apt marks kde-plasma-desktop as a package to remove and what can I do to tell apt that kde-plasma-desktop is important? Is it an error in the database of apt or is it related with other packages which shall be updated?

Example:
Package A in version 1 depends on package libB in version 1. Now both packages receive an upgrade and it can happen that the package libB upgrade arrives in Testing earlier than the package A upgrade. So the dependency for package A v1 (libB v1) is marked for removal leaving package A with a missing dependency. Hence it will also be marked for removal.
That's business as usual in Sid and also happens once in a while in Testing. Usually the version 2 upgrade of package A will also arrive within a few days and all is good again but still: that's Testing. Being careful is mandatory.
With bigger dependency trees things can become more complicated. If there is a package C that also depends on libB v1 but does not have a new version based on B v2, then either libB v1 and v2 can be made co-installable or C has to be removed from the package archive.
In KDE lots of things are moved around currently. KF5 is way more modular than KDE4 and modules are added/removed/moved around as needed.

Related

How to install software on a prorietary linux distro with no repos given? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 12 months ago.
Improve this question
I want to install some basic packages on a proprietary Linux distro based on RHEL (I think).
I tried going the usual dnf install foo way, but quickly found out there are no repositories in /etc/yum.repos.d/.
Since it is based on RHEL, I tried adding some RHEL repos, but still cannot install anything from them. I also tried downloading a package and install it from a local repo as explained here. But no packages are detected in the repo. My guess is that the proprietary distro is (too?) different from RHEL so those repos are not recognized.
So my question is: How do I install packages on a proprietary Linux distro? Is it only possible to install from repos that are meant precisely for the distro I am using? Or could it be that repos for another distro might work? The only other way I can think of is to try to find all the Git repos of all the packages I want to install to install them from source.
There are few possible ways:
activate your RHEL machine.. This include create account in RH. And
its free for small number of machines. More info here.
Download the package and do a local install:
dnf localinstall package.rpm
You should download and install all dependent packages also.
To update you can use nondocumented option:
dnf localupdate package.rpm

How can I reinstall apt? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Hi!
I deleted by mistake, the command apt and apt-get...
My OS: Ubuntu 16.04 TLS
Error:
-bash: /usr/bin/apt: No such file or directory
-bash: /usr/bin/apt-get: No such file or directory
How can I reinstall APT command?
check out the packages.ubuntu.com page and look for the apt package, there you can download the binary .deb file depending on your processor architecture...
But consider that, the deb files have some dependencies... you have to install them too, for listing the package dependencies, use the dpkg, eg:
dpkg -I apt-armhf-blahblah.deb
if you deleted the apt package by itself, take a look at its log file in /var/log/apt/history.log, you can discover the name of packages that you removed.
HINT 1: since the DPKG can't automatically install the dependencies, you have to install them one by one!
HINT 2: that's recommended to remove your current OS and install the latest version because this version will not receive any maintenance update anymore.

apt-get can't install (dependency conflicts?) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm having a problem with apt-get. I'm trying to install gsoap, typing
apt-get install gsoap
but I'm getting
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:
The following packages have unmet dependencies:
libc6-dev : Breaks: gcc-4.4 (< 4.4.6-4) but 4.4.5-8 is to be installed
E: Broken packages
Question 1: can someone translate this into English?
I tried running apt-get -f install, but all it said was "0 upgraded, 0 newly installed, 0 to remove and 1153 not upgraded".
This is really frustrating. I know dependency management is a hard problem, but I thought it was the job of a tool like apt-get to solve that problem for me. In this case it feels like there's something it's decided it can't do, and it's expecting me to resolve it, but it's telling me what's wrong using language which I frankly do not understand.
Question 2: is there something I could read to help me understand apt's dependency management philosophy, so I could maybe understand what's going on here?
If I should be asking these questions somewhere else let me know.
Addendum: per the Debian bug report linked to by mertyildiran, there was definitely a dependency problem involving gcc-4.4 and squeeze (which is in fact what I'm running). That bug claims to be fixed, but somehow the fix isn't helping me.
I suspect it may be time to ask Question 3: Is there a way to hand-edit the dependency list to make this problem go away? That's a terrible idea, I know, but at this point that may be my only choice other than blowing away the whole machine and reinstalling squeeze or wheezy from scratch, and that's a daunting prospect.
Run the following command
sudo apt install aptitude && sudo aptitude install gsoap
It might be that #JosephWorks' solution
sudo apt install aptitude && sudo aptitude install gsoap
actually helps with
Question 3: Is there a way to hand-edit the dependency list to make this problem go away?
Aptitude offers several configuration/downgrading options that installs the package you wish for. You can list the different options with n and choose one with Y.
This solution has been reported in several forums:
sudo apt-get clean && apt-get update
sudo apt-get install -f
sudo apt-get install gsoap
Sources:
http://forums.debian.net/viewtopic.php?f=5&t=70540
http://www.linuxforums.org/forum/debian-linux/182874-apt-get-install-complains-broken-packages.html
Debian Bug report about the issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676483
Explanation:
Let's see the functionality of clean argument with man apt-get:
clean
clean clears out the local repository of retrieved package files. It removes everything but the lock file from
/var/cache/apt/archives/ and /var/cache/apt/archives/partial/.
Simply clean will reset your local package index so you can update your package index in most clean way.
I believe you have made a dist-upgrade in the past or manually edited your /etc/apt/sources.list. Maybe a PPA(Personal Package Archive) that you have used caused this problem.
If the error persists:
Compile and Install gcc-4.4.5
Download gcc-4.4.5: http://www.netgull.com/gcc/releases/gcc-4.4.5/gcc-4.4.5.tar.gz
tar -zxvf gcc-4.4.5.tar.gz
cd gcc-4.4.5/
./configure
make
sudo make install
sudo apt-get install gsoap
Probably you have an old distro. Ubuntu 16.04 comes with gcc-5.4.0. Installing gcc-4.4.5 should solve the problem.
#Steve You wanna try this ?
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential

Centos kernel-devel not available after install [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I am bit confuse that after vagrant-vbguest plugin install kernel-devel-2.6.32-573.el6.x86_64 on my centos guest machine
Why I am not able to search for the same package using
yum search kernel-devel-2.6.32-573.el6.x86_64
But when I do yum install kernel-devel-2.6.32-573.el6.x86_64 I got package is already installed
Any help will be appreciated. Thanks
yum search searches for the specified string in a package's name, summary, description and url fields.
Your full RPM package name doesn't appear in any of those fields.
If you wanted to check for a package by name specifically like that then, depending on where you wanted to search, you would either want yum info, yum list, repoquery or rpm -q.
yum info, yum list query the configured (and enabled) repositories as well as the installed packages
repoquery queries the configured (and enabled) repositories only
rpm -q queries the installed packages only
You do not need the complete kernel version when searching for a package (yum search kernel-devel).
If you need more information attributes including the package version you can:
run yum info kernel-devel
run yum list kernel-devel-2.6.32-573.el6.x86_64
note: if you still want to get all versions available in the repos you can run yum list --showduplicates kernel-devel

Revert system changes after apt-get upgrade on Linux Mint/Ubuntu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I'm using Linux Mint 11 64 bit. I needed some packages to install newest software and found them in ubuntu repositories.
To do this I added
deb http://security.ubuntu.com/ubuntu oneiric-security main
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ oneiric main
to my
/etc/apt/sources.list.
I made automatically sudo apt-get update + sudo apt-get upgrade and it installed ~900 packages from that repository (and removed some of my Mint too...). My system changed to Ubuntu-like dist, installed new graphical interface - probably GNOME3 (I liked my GNOME2 really much..). I am now unable to start GNOME2 at all.
Is there any way to undo this changes? I've removed that lines from sources.list, tried sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
but it didn't help.
Thanks.
You can use ppa-purge - install with sudo apt-get install ppa-purge
See this article for more info
That will roll back your packages so it is safe to remove the repo and keep the software and your system wont blow up.
EDIT (based on user1131467's comment): for full-blown repositories, these answers will help, but it is much more manual:
https://askubuntu.com/a/3675/38901 and
https://superuser.com/a/195071/110574
No sorry, you are pretty screwed. You now have newer versions of most of the packages, so even if you remove the oneiric repo it will still opt to keep the new ones.
The best option is to backup and reinstall.

Resources