mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	FUTURE python2 - use jammy for armhf on ubuntu
This commit is contained in:
		
							parent
							
								
									f27a34708a
								
							
						
					
					
						commit
						c17cf8dcc8
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		|  | @ -43,6 +43,7 @@ case $ARCH in | |||
|         #apt install ./python2.7_2.7.18-8_arm64.deb | ||||
|         #;; | ||||
| 
 | ||||
| # trusted is used for Debian and RasPiOS as the keys would be missing for Ubuntu | ||||
|     "arm64"|"amd64") | ||||
|         apt -y install libffi8 | ||||
|         cat << EOF >> /etc/apt/sources.list.d/python2.list | ||||
|  | @ -51,7 +52,6 @@ deb [trusted=yes] http://ports.ubuntu.com/ jammy-updates main universe | |||
| EOF | ||||
|         ;; | ||||
| 
 | ||||
| # assume armhf is from raspbian | ||||
|     "armhf") | ||||
|         #wget http://raspbian.raspberrypi.org/raspbian/pool/main/libf/libffi/libffi7_3.3-6_armhf.deb | ||||
|         #apt install ./libffi7_3.3-6_armhf.deb | ||||
|  | @ -68,10 +68,18 @@ EOF | |||
|         #wget http://raspbian.raspberrypi.org/raspbian/pool/main/p/python2.7/python2.7_2.7.18-13.2_armhf.deb | ||||
|         #apt install ./python2.7_2.7.18-13.2_armhf.deb | ||||
|         #rm *.deb | ||||
|         cat << EOF >> /etc/apt/sources.list.d/python2.list | ||||
| 
 | ||||
|         if [ -f /etc/rpi-issue ]; then | ||||
|             cat << EOF >> /etc/apt/sources.list.d/python2.list | ||||
| deb http://raspbian.raspberrypi.org/raspbian/ bullseye main | ||||
| deb http://archive.raspberrypi.org/debian/ bullseye main | ||||
| EOF | ||||
|         else | ||||
|             cat << EOF >> /etc/apt/sources.list.d/python2.list | ||||
| deb http://ports.ubuntu.com/ jammy main universe | ||||
| deb http://ports.ubuntu.com/ jammy-updates main universe | ||||
| EOF | ||||
|         fi | ||||
|         ;; | ||||
| esac | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue