Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Software] Ser2net unable to install with Bullseye

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
anvu1
Posts: 5
Joined: 2023-03-18 21:51

[Software] Ser2net unable to install with Bullseye

#1 Post by anvu1 »

Hi,
I have Raspberry Pi4 and trying make this serial console server so I can access console port of Cisco's router. My pi is install with GNU/Linux 11 (Bullseye).
Debian version: 11.5
aarch64 - 64 bit version for my pi

When I run: "sudo apt-get install ser2net" and keep getting this error:
E: Unable to locate package ser2net

Can someone advise what I can do to install ser2net on my pi? Thanks.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: [Software] Ser2net unable to install with Bullseye

#2 Post by sunrat »

Are you connected to the internet?
Are your sources set up correctly?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

anvu1
Posts: 5
Joined: 2023-03-18 21:51

Re: [Software] Ser2net unable to install with Bullseye

#3 Post by anvu1 »

Hi,
I have a wire connection to the Internet.

I've reviewed and updated the sources.list and here is the latest error, which is similar to what I had before. Any suggestion is much appreciated.

cisco@raspberrypi:/etc/apt $ sudo apt-get install ser2net
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package ser2net is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ser2net' has no installation candidate
cisco@raspberrypi:/etc/apt $ cat sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
# deb-src http://deb.debian.org/debian bullseye main contrib non-free
# deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
# deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
# deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
cisco@raspberrypi:/etc/apt $

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: [Software] Ser2net unable to install with Bullseye

#4 Post by stevepusser »

Yes, it's in the repo--Debian calls that arch "arm64".
Have you run "sudo apt update" yet to populate your package database?
MX Linux packager and developer

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: [Software] Ser2net unable to install with Bullseye

#5 Post by sunrat »

And please post terminal text output inside code tags.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

anvu1
Posts: 5
Joined: 2023-03-18 21:51

Re: [Software] Ser2net unable to install with Bullseye

#6 Post by anvu1 »

Looks like packages are up to date(see below).

Can someone helps confirm Ser2net does work with Bullseye Debian version 11.5? Wonder if there is a way manually to get Ser2net package install?

@sunrat: Gladly to provide "terminal text output outside code tags", if you can provide cmd or instruction how to do so.

cisco@raspberrypi:/etc/apt $ sudo apt update
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Fetched 92.4 kB in 2s (54.8 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
cisco@raspberrypi:/etc/apt $ sudo apt install ser2net
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package ser2net is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ser2net' has no installation candidate
cisco@raspberrypi:/etc/apt $

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: [Software] Ser2net unable to install with Bullseye

#7 Post by Aki »

Hello

What is the output of the following commands:

Code: Select all

apt-cache policy
apt-cache policy ser2net
You can include logs or outputs in code tags this way:
[code]this is a log or code[/code]
There’s a code tag button in the upper part of the message editor.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

anvu1
Posts: 5
Joined: 2023-03-18 21:51

Re: [Software] Ser2net unable to install with Bullseye

#8 Post by anvu1 »

Hi,
Here is the output of the two requested cmds. Thanks.

Code: Select all

cisco@raspberrypi:~ $ apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://archive.raspberrypi.org/debian bullseye/main armhf Packages
     release o=Raspberry Pi Foundation,a=stable,n=bullseye,l=Raspberry Pi Foundation,c=main,b=armhf
     origin archive.raspberrypi.org
 500 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages
     release o=Raspberry Pi Foundation,a=stable,n=bullseye,l=Raspberry Pi Foundation,c=main,b=arm64
     origin archive.raspberrypi.org
 500 http://deb.debian.org/debian bullseye-updates/main armhf Packages
     release v=11-updates,o=Debian,a=stable-updates,n=bullseye-updates,l=Debian,c=main,b=armhf
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye-updates/main arm64 Packages
     release v=11-updates,o=Debian,a=stable-updates,n=bullseye-updates,l=Debian,c=main,b=arm64
     origin deb.debian.org
 500 http://security.debian.org/debian-security bullseye-security/main armhf Packages
     release v=11,o=Debian,a=stable-security,n=bullseye-security,l=Debian-Security,c=main,b=armhf
     origin security.debian.org
 500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
     release v=11,o=Debian,a=stable-security,n=bullseye-security,l=Debian-Security,c=main,b=arm64
     origin security.debian.org
 500 http://deb.debian.org/debian bullseye/non-free armhf Packages
     release v=11.6,o=Debian,a=stable,n=bullseye,l=Debian,c=non-free,b=armhf
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/non-free arm64 Packages
     release v=11.6,o=Debian,a=stable,n=bullseye,l=Debian,c=non-free,b=arm64
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/contrib armhf Packages
     release v=11.6,o=Debian,a=stable,n=bullseye,l=Debian,c=contrib,b=armhf
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/contrib arm64 Packages
     release v=11.6,o=Debian,a=stable,n=bullseye,l=Debian,c=contrib,b=arm64
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/main armhf Packages
     release v=11.6,o=Debian,a=stable,n=bullseye,l=Debian,c=main,b=armhf
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/main arm64 Packages
     release v=11.6,o=Debian,a=stable,n=bullseye,l=Debian,c=main,b=arm64
     origin deb.debian.org
Pinned packages:
cisco@raspberrypi:~ $ apt-cache policy ser2net
ser2net:
  Installed: (none)
  Candidate: (none)
  Version table:
cisco@raspberrypi:~ $
Moderator EDIT: code tags corrected.

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: [Software] Ser2net unable to install with Bullseye

#9 Post by Aki »

Hello,

From the output in the previous post, it seems that in your RPi two repository for "a=stable,n=bullseye" are configured :

Code: Select all

cisco@raspberrypi:~ $ apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://archive.raspberrypi.org/debian bullseye/main armhf Packages
     release o=Raspberry Pi Foundation,a=stable,n=bullseye,l=Raspberry Pi Foundation,c=main,b=armhf
     origin archive.raspberrypi.org
     [..]
 500 http://deb.debian.org/debian bullseye/main armhf Packages
     release v=11.6,o=Debian,a=stable,n=bullseye,l=Debian,c=main,b=armhf
     origin deb.debian.org   
Both of them have the same priority (500) and in this case, if I recall correctly, the first configured/listed repository is used (http://archive.raspberrypi.org/debian , in your case). Unfortunately, this repository does not host the package you wish to install (that is hosted by http://deb.debian.org/debian , instead)

In the /etc/apt/sources.list you sent in a previous message, the repository http://archive.raspberrypi.org/debian was not listed: have you added it afterwards ? Or is it configured in a file under /etc/apt/apt.conf.d/ ? You can comment the http://archive.raspberrypi.org/debian repository and then issue the following commands:

Code: Select all

apt update
apt-cache policy ser2net
The ser2net should have a candidate version for installation.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

anvu1
Posts: 5
Joined: 2023-03-18 21:51

Re: [Software] Ser2net unable to install with Bullseye

#10 Post by anvu1 »

Hello Aki,
Appreciate for you providing comment on my issue. I've might have update the sources.list several times while trying to see if I can get ser2net installed.

However, a user from Raspberry Pi Forum indicated that I have corruption on my index files and some of the package information is missing. User suggested that I delete current lists, run the update to rebuild all the indexes then install ser2net is a success. Here are the steps.
sudo rm /var/lib/apt/lists/*_*
sudo apt update
apt policy ser2net
sudo apt install ser2net

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: [Software] Ser2net unable to install with Bullseye

#11 Post by sunrat »

Code: Select all

apt policy ser2net
That's not an essential step, it will tell you the status of the package and whether it is available. Post the output from that here as Aki mentioned.
Did you run those other commands? What happened?

Also you should post the code text inside the code tags not after them, as I just did in the first line of this post.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply