Installing Erlang & RabbitMQ on debian - package issues

55

Your sources.list is missing the main Debian repository. Add this line to /etc/apt/sources.list and try installing rabbitmq-server again:

deb http://ftp.us.debian.org/debian stable main contrib non-free

As you can see here, the rabbitmq-server is indeed in the main debian repository, so after adding the line above you should be able to install it with

sudo apt-get install rabbitmq-server 

Just make sure to choose a debian mirror that is close to you and edit the deb line accordingly.

Share:
55

Related videos on Youtube

Toby Nwude
Author by

Toby Nwude

Updated on September 18, 2022

Comments

  • Toby Nwude
    Toby Nwude over 1 year

    I am trying to query two tables in Laravel when the user submits a form. The data is stored in the transaction table and I can also update the Account table by adding the $transactions->amt with $account->total.

    I tried doing this;

    public function store(Request $request)
        {
            $account = DB::table('users')
                ->join('accounts', "users.id", '=', 'accounts.user_id')
                ->select('users.*', 'accounts.*')
                ->first();
    
            $transaction = new Transaction();
            $data  = $this->validate($request, [
                'baddress'=>'required',
                'package'=>'required',
                'amt'=>'required',
            ]);
            $transaction->username = $account->username;          
            $transaction->baddress = $request->input('baddress');
            $transaction->package = $request->input('package');
            $transaction->amt = $request->input('amt');
            $transaction->fund_option = "Fund";
            $transaction->save();
    
            $bal= $transaction->amt + $account->total;
    
            $account->amt_paid = $bal;
            $account->total = $bal;
            $account->save();
    
            return redirect('/transfer')->with('success', 'Transaction has been made');
        }
    

    but I got this error:

    Call to undefined method stdClass::save()

    How can I find the best method to do this?

  • user991710
    user991710 almost 11 years
    That worked. I should've picked up on that, but how is the main depository not included after a clean OS Install? Perhaps it was excluded when I unchecked the Desktop environment, but still pretty weird. Thank you, and sorry for getting back to you so late.
  • terdon
    terdon almost 11 years
    @user991710 no idea, it is strange, maybe a change you made at some point?