cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Participant
Participant
366 Views
Registered: ‎11-27-2018

Libraries lost after install cmake

Hi, ALL:

Yesterday I installed cmake to compile project NE10 library, there is no cmake in my ubuntu, so I installed it by these commands:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install cmake

Today when I open a new terminal, the petalinux/settings.sh gives these error messages:

PetaLinux environment set to '/home/user/petalinux'
INFO: Checking free disk space
INFO: Checking installed tools
ERROR: You are missing the following system tools required by PetaLinux:

 - libtool
 - zlib1g-dev
 - gcc-multilib
 - build-essential
 - libsdl1.2-dev
 - libglib2.0-dev
Please check PetaLinux installation guide - required tools and libraries package section for detailed information

INFO: Checking installed development libraries
ERROR: You are missing these development libraries required by PetaLinux:

 - zlib
 - ncurses
 - openssl

Please install them with your operating system package manager, and try again
user@ubuntu:~$ 

I guess this is caused by the new apt-get, and I tried to install the libraries again, but get these:

root@ubuntu:/home/user# apt install build-essential vim tofrodos
Reading package lists... Done
Building dependency tree       
Reading state information... Done
vim is already the newest version (2:7.4.1689-3ubuntu1.2).
tofrodos is already the newest version (1.7.13+ds-2ubuntu1).
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:
 build-essential : Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   Depends: g++ (>= 4:4.3.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@ubuntu:/home/user# apt install iproute2 gawk gcc git make net-tools zlib1g-dev 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
make is already the newest version (4.1-6).
gcc is already the newest version (4:5.3.1-1ubuntu1).
gawk is already the newest version (1:4.1.3+dfsg-0.1).
iproute2 is already the newest version (4.3.0-1ubuntu3.16.04.4).
net-tools is already the newest version (1.60-26ubuntu1).
git is already the newest version (1:2.7.4-0ubuntu1.6).
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:
 zlib1g-dev : Depends: zlib1g (= 1:1.2.3.3.dfsg-15ubuntu1) but 1:1.2.8.dfsg-2ubuntu4.1 is to be installed
              Depends: libc6-dev but it is not going to be installed or
                       libc-dev
E: Unable to correct problems, you have held broken packages.
root@ubuntu:/home/user# 

What should I do now?

Thanks!

0 Kudos
2 Replies
Highlighted
Participant
Participant
354 Views
Registered: ‎11-27-2018

I added these lines in the file /etc/apt/sources.list

deb http://old-releases.ubuntu.com/ubuntu lucid main restricted universe multiverse   
deb http://old-releases.ubuntu.com/ubuntu lucid-security main restricted universe multiverse   
deb http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted universe multiverse   
deb http://old-releases.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse   
deb http://old-releases.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse   
deb-src http://old-releases.ubuntu.com/ubuntu lucid main restricted universe multiverse   
deb-src http://old-releases.ubuntu.com/ubuntu lucid-security main restricted universe multiverse   
deb-src http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted universe multiverse   
deb-src http://old-releases.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse   
deb-src http://old-releases.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse 

and then I typed these to install cmake:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install cmake

after that I compiled NE10 library with cmake successfully. But today when I start a terminal in ubuntu and find that some libraries are lost, and I can't install them again.

It seems that the mixing sources caused the problem. How to revert the libraries to the initial state?

0 Kudos
Highlighted
Participant
Participant
336 Views
Registered: ‎11-27-2018

I've solved this by using aptitude and some manual operations. Maybe the new added server lists caused the problem, I switched to "Main server" and petalinux now working again.

0 Kudos