Score:1

Change the url for fetching updated packages in Ubuntu

ms flag

I have a problem about updating the rabbitmq package in Ubuntu 20.04.6 LTS. It gives errors when I run sudo apt update:

E: Failed to fetch https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu/dists/focal/main/binary-i386/Packages  404  Not Found [IP: 104.21.27.7 443]
E: Failed to fetch https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu/dists/focal/main/binary-i386/Packages  404  Not Found [IP: 104.21.27.7 443]

Then I found the reason for such errors is that "the mirror does not have i386 (32-bit) packages. We never produced them or published for 32-bit. Maybe Cloudsmith itself indexes arch-neutral packages for i386 but Erlang Debian packages are not arch-neutral (while RabbitMQ Debian packages are)" (https://github.com/rabbitmq/rabbitmq-server/discussions/8934)

I am using a 64-bit machine and I do not know why the sudo apt update tries to fetch the package via a non-existing url for 32-bit machines. How should I change the url to a correct one?

I looked into both /etc/apt/sources.list and etc/apt/sources.list.d/rabbitmq.list, and I did not find the same url for 32-bit machines appeared in the error messages above. I only found these urls in the list, which look very close to them:

./sources.list.d/rabbitmq.list.save:deb [signed-by=/usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg] https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal main
./sources.list.d/rabbitmq.list.save:deb-src [signed-by=/usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg] https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal main
./sources.list.d/rabbitmq.list:deb [signed-by=/usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg] https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal main
./sources.list.d/rabbitmq.list:deb-src [signed-by=/usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg] https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal main
muru avatar
us flag
You probably ran `dpkg --add-architecture i386` for some reason, which is why apt started asking repos for `i386` package lists as well. Assuming that is actually needed, just add `arch=amd64` next to the `signed-by` option for the affected repo.
muru avatar
us flag
If the `i386` arch isn't needed, use https://askubuntu.com/a/988858/158442 to remove it
kykywei avatar
ms flag
@muru Thanks it worked!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.