Skip to content
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

No longer possible to download packages for ubuntu vivid #13

Open
mschaaf opened this issue Dec 30, 2017 · 29 comments
Open

No longer possible to download packages for ubuntu vivid #13

mschaaf opened this issue Dec 30, 2017 · 29 comments

Comments

@mschaaf
Copy link

mschaaf commented Dec 30, 2017

Installing tools from the Ubuntu repos seems no longer possible.
I get the following error message on "apt update"

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/vivid-updates/main/binary-armhf/Packages 404 Not Found [IP: 91.189.88.150 80]

Is there an updated Parabuntu?
Or is it possible to upgrade the image myself?

@mgrecki
Copy link

mgrecki commented Jan 18, 2018

It seems that vivid version of Ubuntu is no longer supported. If the parabuntu maintainer does not prepare new version it will stay like that. I have made dirty hack by edit /etc/sources.list file exchanging "vivid" to "xenial". At least for my case it works and I could install few packages I need (e.g. mc, gnuplot). There were no essential errors during update and installation. Maybe that helps you as well?

@diveyez
Copy link

diveyez commented Feb 9, 2018

I cant even get into the ssh for my board.

@diveyez
Copy link

diveyez commented Feb 9, 2018

login as: parallella
[email protected]'s password:
Access denied
[email protected]'s password:
(LOCAL ETH DIRECTLY PLUGGED INTO LAPTOP ONLY)

@mgrecki
Copy link

mgrecki commented Feb 10, 2018

can you connect using serial? Anyway, it is almost impossible to not be able to login into standard distribution using standard account and password... check whether you really boot the right image and connect to the right network node, however looking to ssh output you did well.... You can also try to mount the sd card in your laptop directly and remove parallella password from /etc/shadow and then try to log in again.

@tslpre
Copy link

tslpre commented May 5, 2018

I have done the upgrade from "vivid" to "xenial" and had my system working fine. Then I have upgraded to "bionic" two days ago and it worked fine as well. No issues found during the process. Next step should be to update the kernel...

@marcofranchimoretti
Copy link

@agent001
Copy link

agent001 commented Jul 22, 2018

Comment out all existing release links and add below in the file /etc/apt/sources.list

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

@tslpre
Copy link

tslpre commented Aug 26, 2018

After almost four months of Parallella working on Bionic, I can confirm that the upgrade path worked perfectly... what @agent001 mentioned in the previous post (about using the "old-releases.ubuntu.com") is important as it will allow the update from an unsupported version to another unsupported one.

@njpacoma
Copy link

tslpre, would you be willing to provide guidance regarding how you upgraded the Parallella to bionic? I would like to do that myself. Do you have the ability to still program for the Epiphany?

@tslpre
Copy link

tslpre commented Oct 6, 2018

@njpacoma being the current version (Vivid) not supported anymore, you need to update the sources.list manually so you can update to xenial (that is a LTS) and then from there you can update to Bionic (that is the following LTS).
Have a look at the answer at: https://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release

That's basically what you should do :)

Let me know if you need more details.

@njpacoma
Copy link

njpacoma commented Oct 7, 2018

Thanks, tslpre, I managed to upgrade to Bionic. There were a bunch of pitfalls along the way and I am not sure I could easily reproduce the steps without working through the process again and working out how I got around those pitfalls. I tried a couple of the parallella examples and they seem to still work. Appreciate the pointer.

@agent001
Copy link

agent001 commented Oct 31, 2018

I upgraded to Bionic after

  1. partition size increase using https://linuxconfig.org/how-to-resize-ext4-root-partition-live-without-umount
  2. From vivid => wily, wily=> xenial following this https://linuxconfig.org/how-to-upgrade-to-ubuntu-18-04-lts-bionic-beaver#h9-how-to-upgrade-ubuntu-the-debian-way
  3. xenial => bionic using standard do-release-upgrade

The source list produced by https://repogen.simplylinux.ch/generate.php was useful.
And I had to manually update the vivid source list
a) sudo sed -i 's/vivid/xenial/g' /etc/apt/sources.list
b) for i in find /etc/apt/sources.list.d/ -type f | xargs grep vivid -l;do sudo sed -i 's/vivid/xenial/g' $i;done

@boneoh
Copy link

boneoh commented Feb 12, 2019

Is there an image file that I can download?

I'm far from a linux guru, this is way out of my pay grade.

@njpacoma
Copy link

boneoh, do you have the desktop or the server? do you have more than one?

I am not sure that the kernel after the upgrade is the latest Ubuntu kernel or if it has been kept back because it was a custom build. The uname command shows

Linux parallella-1 4.6.0+ #1 SMP PREEMPT Wed Dec 7 13:27:40 CET 2016 armv7l armv7l armv7l GNU/Linux

This is what is in the /etc/os-release file

NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

If you are looking for the latest and greatest kernel, this won't give it to you. I upgraded because some of the software I wanted to install was no longer available.

@boneoh
Copy link

boneoh commented Feb 16, 2019 via email

@tslpre
Copy link

tslpre commented Feb 19, 2019

@boneoh - what @njpacoma said above is correct - when you update to a new Ubuntu version, the old kernel will stay there. This doesn't mean that it won't work, but if you need to do something that requires support for a specific hardware or functionality, you will need a newer one. As I'm playing with docker, I have compiled a new one.

As commented on my post above, compiling the kernel was the last missing piece to have a fully updated ubuntu.

Let me share how I did it, step by step:
`mkdir /home/yourprofile/kernel # create a folder somewhere to store the kernel to be compiled

cd kernel
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git # download the kernel sources

cd linux-stable-rc
git tag -l | less #this command is optional - it will allow you to see with versions you can choose

git checkout -b stable v4.9.99 #I'm using the version 4.9.99 right now

#now you should customize the kernel config - I will attach here the version I'm using - just decompress it in the same folder you are currently: /home/yourprofile/kernel/linux-stable-rc

kernel_config.tar.gz

make -j 4 LOADADDR=0x8000
make -j 4 LOADADDR=0x8000 uImage
make -j 4 LOADADDR=0x8000 zynq-parallella-headless-noelink.dtb
make CFLAGS_MODULE=-fno-pic -j 4 LOADADDR=0x8000 modules
export MODULES_INSTALL_DIR=$PWD/modules
export HEADERS_INSTALL_DIR=$PWD/headers
make -j 4 LOADADDR=0x8000 INSTALL_MOD_PATH=$MODULES_INSTALL_DIR modules_install
make -j 4 LOADADDR=0x8000 INSTALL_HDR_PATH=$HEADERS_INSTALL_DIR headers_install

sudo mount /dev/mmcblk0p1 /mnt #mounting the partition with the current kernel
cd /mnt
sudo cp uImage uImage.old #create a copy of the original kernel, just in case
sudo cp /home/yourprofile/kernel/linux-stable-rc/arch/arm/boot/uImage . #copying the new kernel image
cd /lib/modules/
sudo cp -a /home/yourprofile/kernel/linux-stable-rc/modules/lib/modules/4.9.99/ .`

Then you can reboot and you should have the new kernel...

@njpacoma
Copy link

@boneoh, please send your email address to tswoyer at gmail.com and I will send you a link to a downloadable image.

@boneoh
Copy link

boneoh commented Mar 1, 2019

@njpacoma Thank you so much for the image, Ted! I was able to setting up a static IP and a few other things to get going. I've backed up the image so I can experiment!

@tslpre I am in the process of following your recipe above! Thanks for posting that.

After that, I hope to run all of the examples.

@boneoh
Copy link

boneoh commented Mar 1, 2019

@tslpre I've done the git ok, and downloaded kernel config. I've never built the kernel before, sounds a bit intimidating!

Out of curiosity, I looked at the config file, I didn't realize that there are so many options!

A little background, I am working with parallella at home, but there may be use for this in my work environment. Think of parallella as an embedded processor for medical imaging. So this would need HDMI, Bluetooth, and Wifi (using USB adapters).

So before I build the kernel, I'd like to know how to check the config to make sure the appropriate settings are in there. Is there somewhere I can lookup these?

I was surprised to see config options for Health related stuff like temperature, humidity, heart rate, etc. I'd like to learn more about them as well.

I'm also interested in the Kinect demo, it looks fun. I think we could use this to create maps of rooms to help with object tracking.

@boneoh
Copy link

boneoh commented Mar 2, 2019

Thanks again for the help.

Mr. Google has found this for me https://help.ubuntu.com/lts/installation-guide/s390x/ch08s06.html

@boneoh
Copy link

boneoh commented Mar 3, 2019

Looks like I may be missing a file or ?

parallella@master_cylinder:~/kernel/linux-stable-rc$ make -j 4 LOADADDR=0x8000 zynq-parallella-headless-noelink.dtb
make[1]: *** No rule to make target 'arch/arm/boot/dts/zynq-parallella-headless-noelink.dtb'. Stop.
arch/arm/Makefile:336: recipe for target 'zynq-parallella-headless-noelink.dtb' failed
make: *** [zynq-parallella-headless-noelink.dtb] Error 2**

Any guidance is greatly appreciated! Thanks,

Pete

@tslpre
Copy link

tslpre commented Mar 3, 2019

@boneoh the file .dtb is a "Device Tree file - if you mount /dev/mmcblk0p1 to a temporary folder (for example: sudo mount /dev/mmcblk0p1 /mnt) you will see that you will find a file called devicetree.dtb - that is the standard one - please use that one.

The one I was referring to (zynq-parallella-headless-noelink.dtb) it's a custom one - my bad, I should have mentioned the standard one in my post.

With that change in mind, you should be able to build everything properly :)

@boneoh
Copy link

boneoh commented Mar 4, 2019

@tslpre Thanks again for your help! The device tree change got me passed the problem. I am now up and running with the 4.9.99 kernel!

Regards,

Pete

@boneoh
Copy link

boneoh commented Mar 4, 2019

It seems like something is missing. I get the "EPIPHANY_DEV file open failure" message when trying to run the eprime example. I'm not sure how to dig further on this.

Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.9.99 armv7l)

Last login: Mon Mar 4 00:19:47 2019 from 192.168.0.10
parallella@master_cylinder:$ cd parallella-examples/eprime
parallella@master_cylinder:
/parallella-examples/eprime$ ./build.sh
src/prime.c: In function ‘main’:
src/prime.c:59:2: warning: implicit declaration of function ‘e_load_group’; did you mean ‘e_start_group’? [-Wimplicit-function-declaration]
e_load_group("e_prime.elf", &dev, 0, 0, platform.rows, platform.cols, E_FALSE);
^~~~~~~~~~~~
e_start_group
parallella@master_cylinder:~/parallella-examples/eprime$ ./run.sh
prime.elf: e_reset_system(): EPIPHANY_DEV file open failure.
prime.elf: e_open(): EPIPHANY_DEV file open failure.
./run.sh: line 8: 2102 Segmentation fault (core dumped) ./prime.elf ${PRIMES_PER_CORE}

Not sure if this is helpful:
dmesg.txt

Thanks!

Pete

@njpacoma
Copy link

njpacoma commented Mar 7, 2019 via email

@peteappleby
Copy link

peteappleby commented Mar 7, 2019 via email

@boneoh
Copy link

boneoh commented Mar 8, 2019

@njpacoma Hi, Ted. I updated the .bashrc, the line you have for EPYTHONPATH has added /home/parau/epython, which was missing.

I could not save the attachment for some reason. Would you please send it to me again? My email is boneoh at yahoo dot com. I tried several times, but the file never got saved from the email app. Very strange.

I really appreciate the help!

Regards,

Pete

@ghost
Copy link

ghost commented May 13, 2019

Hello everyone!

As it appears, I'm a very late newcomer to the Parallella board. I have a microserver which I purchased recently intending to try it out for OCR work.

While trying to upgrade the latest "official" parabuntu image, I am struggling to get past Wily. On my first attempt I went the way described in https://linuxconfig.org/how-to-upgrade-to-ubuntu-18-04-lts-bionic-beaver#h9-how-to-upgrade-ubuntu-the-debian-way , but ended up with something that wasn't very functional so I started again.

Is there no way to do it the "ubuntu way"? Seems that Xenial and Bionic are missing the armhf packages or at least I have not been successful at finding them anywhere in the ubuntu repos. I am wondering whether something has changed in the time since previous solutions to this problem have been posted that's preventing me from success with this. If anyone is able to shine a light or possibly point me to a download link of a fully functional Xenial or Bionic image (Xenial would be ideal), I would appreciate it.

Thanks!
guuberholtz

@ypwangnexus
Copy link

ypwangnexus commented Jun 19, 2019

@guuberholtz Just a quick update on this one.
I applied the method that @agent001 stated above by directly replace 'vivid' to 'xenial' (15.04 -> 16.04) and successfully upgraded to 16.04.

a) sudo sed -i 's/vivid/xenial/g' /etc/apt/sources.list
b)for i in `find /etc/apt/sources.list.d/ -type f | xargs grep vivid -l`;do sudo sed -i 's/vivid/xenial/g' $i;done
c) sudo apt-get update
d) sudo apt-get dist-upgrade

One important note is that I ssh into the board and in the last step, I got disconnected during the 'dist-upgrade' then I just leave the board there without touching it for the whole night. it turned out to be fine. I know that it might be risky so take it for your own risk.
( in case of interrupted during dist-upgrade, the following 2 command will finally complete. In case of lost connection again, just use 'screen -r' to retrieve)
e) sudo dpkg --configure -a
f) sudo screen apt-get dist-upgrade -f

Run a quick test and it seems ok.

parallella@parallella: /parallella-examples/eprime2$ ./build.sh
parallella@parallella: /parallella-examples/eprime2$ ./run.sh
Usage: ./run.sh numberic-value
parallella@parallella:~/parallella-examples/eprime2$ ./run.sh 126
Core (00,00) Tests: 4 Primes: 2
Core (00,01) Tests: 4 Primes: 3
Core (00,02) Tests: 4 Primes: 3
Core (00,03) Tests: 4 Primes: 2
Core (01,00) Tests: 4 Primes: 3
Core (01,01) Tests: 4 Primes: 2
Core (01,02) Tests: 4 Primes: 2
Core (01,03) Tests: 4 Primes: 2
Core (02,00) Tests: 4 Primes: 2
Core (02,01) Tests: 4 Primes: 1
Core (02,02) Tests: 4 Primes: 1
Core (02,03) Tests: 4 Primes: 1
Core (03,00) Tests: 4 Primes: 1
Core (03,01) Tests: 4 Primes: 2
Core (03,02) Tests: 3 Primes: 1
Core (03,03) Tests: 3 Primes: 1

Total tests: 62 Found primes: 30

real 0m0.181s
user 0m0.010s
sys 0m0.010s
parallella@parallella: /parallella-examples/eprime2$ uname -a
Linux parallella 4.6.0+ #1 SMP PREEMPT Wed Dec 7 13:27:40 CET 2016 armv7l armv7l armv7l GNU/Linux
parallella@parallella: /parallella-examples/eprime2$ cat /etc/issue
Ubuntu 16.04.6 LTS \n \l

parallella@parallella: /parallella-examples/eprime2$

Once upgrade from 15.04 to 16.04, then doing the following will eventually upgrade to 18.04
g) sudo do-release-upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants